Commit 5ab7c5f5 by 夏超

[fix] 添加特殊工序字段数据

parent 6ec492d0
......@@ -15,7 +15,8 @@
'views/inherit_roke_production_task.xml',
'views/button_js.xml',
'views/iniherit_work_order_view.xml',
'views/inherit_roke_product.xml'
'views/inherit_roke_product.xml',
'views/inherit_roke_routing_line.xml'
],
'qweb': [
"static/src/xml/roke_craft_design.xml",
......
......@@ -5,6 +5,7 @@ class InheritRokeRoutingLine(models.Model):
_inherit = "roke.routing.line"
rated_working_hours = fields.Float(string='标准工时', help='工序的标准工时(小时)')
special_process = fields.Boolean(string="特殊工序", default=False)
class InheritRokeProcess(models.Model):
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment