增加自动化产线的零件供货路线初始化为自动化产线加工

This commit is contained in:
胡尧
2025-03-06 13:59:14 +08:00
parent 2409dab8b0
commit cb645aa1b9
2 changed files with 10 additions and 5 deletions

View File

@@ -21,6 +21,10 @@
<xpath expr="//field[@name='order_line']/tree/field[@name='glb_url']" position="before">
<field name="part_number" optional="show" class="section_and_note_text"/>
</xpath>
<xpath expr="//field[@name='order_line']/tree/field[@name='remark']" position="before">
<field name="cancel_auto_machining" invisible="1"/>
<field name="cancel_auto_machining_reason" optional="show" attrs="{'required': [('cancel_auto_machining', '=', True),('state', 'not in', ['draft', 'sent'])]}"/>
</xpath>
<!-- <xpath expr="//header/button[@name='action_cancel']" position="attributes"> -->
<!-- <attribute name="attrs">{'invisible': [('state', '!=', 'draft')]}</attribute> -->