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
5ab7c5f5
Commit
5ab7c5f5
authored
Jan 07, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 添加特殊工序字段数据
parent
6ec492d0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletions
+17
-1
sdddl_project/__manifest__.py
+2
-1
sdddl_project/models/inherit_roke_routing_line.py
+1
-0
sdddl_project/views/inherit_roke_routing_line.xml
+14
-0
No files found.
sdddl_project/__manifest__.py
View file @
5ab7c5f5
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
'views/inherit_roke_production_task.xml'
,
'views/inherit_roke_production_task.xml'
,
'views/button_js.xml'
,
'views/button_js.xml'
,
'views/iniherit_work_order_view.xml'
,
'views/iniherit_work_order_view.xml'
,
'views/inherit_roke_product.xml'
'views/inherit_roke_product.xml'
,
'views/inherit_roke_routing_line.xml'
],
],
'qweb'
:
[
'qweb'
:
[
"static/src/xml/roke_craft_design.xml"
,
"static/src/xml/roke_craft_design.xml"
,
...
...
sdddl_project/models/inherit_roke_routing_line.py
View file @
5ab7c5f5
...
@@ -5,6 +5,7 @@ class InheritRokeRoutingLine(models.Model):
...
@@ -5,6 +5,7 @@ class InheritRokeRoutingLine(models.Model):
_inherit
=
"roke.routing.line"
_inherit
=
"roke.routing.line"
rated_working_hours
=
fields
.
Float
(
string
=
'标准工时'
,
help
=
'工序的标准工时(小时)'
)
rated_working_hours
=
fields
.
Float
(
string
=
'标准工时'
,
help
=
'工序的标准工时(小时)'
)
special_process
=
fields
.
Boolean
(
string
=
"特殊工序"
,
default
=
False
)
class
InheritRokeProcess
(
models
.
Model
):
class
InheritRokeProcess
(
models
.
Model
):
...
...
sdddl_project/views/inherit_roke_routing_line.xml
0 → 100644
View file @
5ab7c5f5
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record
id=
"view_roke_routing_line_tree_inherit"
model=
"ir.ui.view"
>
<field
name=
"name"
>
roke.routing.line.tree.inherit
</field>
<field
name=
"model"
>
roke.routing.line
</field>
<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"
/>
</xpath>
</field>
</record>
</odoo>
\ No newline at end of file
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