Commit 290b08ea by 夏超

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

parent 40a50d16
...@@ -5,7 +5,7 @@ class InheritRokeRoutingLine(models.Model): ...@@ -5,7 +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) special_process = fields.Selection([('是', '是'), ('否', '否')], string="特殊工序", default='否')
class InheritRokeProcess(models.Model): class InheritRokeProcess(models.Model):
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<field name="inherit_id" ref="roke_mes_base.view_roke_routing_line_editable_tree"/> <field name="inherit_id" ref="roke_mes_base.view_roke_routing_line_editable_tree"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='process_id']" position="after"> <xpath expr="//field[@name='process_id']" position="after">
<field name="special_process"/> <field name="special_process" required="1"/>
</xpath> </xpath>
</field> </field>
</record> </record>
......
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