Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
290b08ea
Commit
290b08ea
authored
Jan 07, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 添加特殊工序字段数据
parent
40a50d16
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sdddl_project/models/inherit_roke_routing_line.py
+1
-1
sdddl_project/views/inherit_roke_routing_line.xml
+1
-1
No files found.
sdddl_project/models/inherit_roke_routing_line.py
View file @
290b08ea
...
...
@@ -5,7 +5,7 @@ class InheritRokeRoutingLine(models.Model):
_inherit
=
"roke.routing.line"
rated_working_hours
=
fields
.
Float
(
string
=
'标准工时'
,
help
=
'工序的标准工时(小时)'
)
special_process
=
fields
.
Boolean
(
string
=
"特殊工序"
,
default
=
False
)
special_process
=
fields
.
Selection
([(
'是'
,
'是'
),
(
'否'
,
'否'
)],
string
=
"特殊工序"
,
default
=
'否'
)
class
InheritRokeProcess
(
models
.
Model
):
...
...
sdddl_project/views/inherit_roke_routing_line.xml
View file @
290b08ea
...
...
@@ -6,7 +6,7 @@
<field
name=
"inherit_id"
ref=
"roke_mes_base.view_roke_routing_line_editable_tree"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//field[@name='process_id']"
position=
"after"
>
<field
name=
"special_process"
/>
<field
name=
"special_process"
required=
"1"
/>
</xpath>
</field>
</record>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment