装夹预调工单,要带图纸和模型文件及坯料长宽高参数的优化需求2:状态变化逻辑

This commit is contained in:
mgw
2024-04-23 10:54:04 +08:00
parent 49e4f92a91
commit 9cfc084c5c
5 changed files with 34 additions and 11 deletions

View File

@@ -62,11 +62,14 @@
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='state']" position="attributes">
<attribute name="statusbar_visible">draft,confirmed,progress,pending_processing,completed,done
<!-- <attribute name="statusbar_visible">draft,confirmed,progress,pending_processing,completed,done -->
<!-- </attribute> -->
<attribute name="statusbar_visible">progress,pending_cam,pending_processing,pending_era_cam,completed,done
</attribute>
</xpath>
<xpath expr="//sheet//group//group[2]//label" position="before">
<field name="process_state"/>
<!-- <field name="process_state"/> -->
<field name="state"/>
</xpath>
<xpath expr="//sheet//group//group//div[3]" position="after">

View File

@@ -264,6 +264,10 @@
<field name="preset_program_information" colspan="2" nolabel="1"
placeholder="如有预调程序信息请在此处输入....."/>
</group>
<group string="加工图纸">
<!-- 隐藏加工图纸字段名 -->
<field name="processing_drawing" widget="pdf_viewer" string=""/>
</group>
</page>
<page string="前置三元检测定位参数" attrs='{"invisible": [("routing_type","!=","装夹预调")]}'>