优化工单
This commit is contained in:
@@ -41,9 +41,11 @@
|
|||||||
<!-- attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>-->
|
<!-- attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>-->
|
||||||
<!-- <button name="action_open_wizard" type="object" icon="fa-external-link" class="oe_edit_only"-->
|
<!-- <button name="action_open_wizard" type="object" icon="fa-external-link" class="oe_edit_only"-->
|
||||||
<!-- title="Open Work Order"/>-->
|
<!-- title="Open Work Order"/>-->
|
||||||
|
<!-- edit='false' create = 'false'-->
|
||||||
<tree position="attributes">
|
<tree position="attributes">
|
||||||
<attribute name="multi_edit"></attribute>
|
<attribute name="multi_edit"></attribute>
|
||||||
<attribute name="editable"></attribute>
|
<attribute name="editable"></attribute>
|
||||||
|
<attribute name="create">false</attribute>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@@ -116,18 +118,19 @@
|
|||||||
</xpath>
|
</xpath>
|
||||||
<!-- 隐藏物料清单-->
|
<!-- 隐藏物料清单-->
|
||||||
|
|
||||||
<field name="production_id" position="after">
|
<field name="production_id" position="after" invisible="0">
|
||||||
<group>
|
<group>
|
||||||
<field name="date_planned_start" invisible="1"/>
|
<field name="date_planned_start" invisible="1"/>
|
||||||
<field name="date_planned_finished" invisible="1"/>
|
<field name="date_planned_finished" invisible="1"/>
|
||||||
|
<!-- <field name="production_id" readonly="1"/>-->
|
||||||
<field name="duration" widget="mrp_timer"
|
<field name="duration" widget="mrp_timer"
|
||||||
attrs="{'invisible': [('production_state','=', 'draft')], 'readonly': [('is_user_working', '=', True)]}"
|
attrs="{'invisible': [('production_state','=', 'draft')], 'readonly': [('is_user_working', '=', True)]}"
|
||||||
sum="real duration"/>
|
sum="real duration"/>
|
||||||
<field name="processing_panel" readonly="1"/>
|
<field name="processing_panel" readonly="1" attrs='{"invisible": [("routing_type","=","切割")]}'/>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<field name="processing_panel" readonly="1" attrs="{'invisible': [('routing_type', 'in', ('获取CNC加工程序','装夹','解除装夹',
|
<!-- <field name="processing_panel" readonly="1" attrs="{'invisible': [('routing_type', 'in', ('获取CNC加工程序','装夹','解除装夹',-->
|
||||||
'前置三元定位检测','后置三元质量检测','解除装夹'))]}"/>
|
<!-- '前置三元定位检测','后置三元质量检测','解除装夹'))]}"/>-->
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<xpath expr="//page[1]" position="before">
|
<xpath expr="//page[1]" position="before">
|
||||||
@@ -157,6 +160,7 @@
|
|||||||
<field name="tray_code"/>
|
<field name="tray_code"/>
|
||||||
<field name="tray_id" readonly="1"/>
|
<field name="tray_id" readonly="1"/>
|
||||||
|
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
<div class="col-12 col-lg-6 o_setting_box">
|
<div class="col-12 col-lg-6 o_setting_box">
|
||||||
<button type="object" class="oe_highlight" name="gettray" string="绑定托盘"
|
<button type="object" class="oe_highlight" name="gettray" string="绑定托盘"
|
||||||
|
|||||||
Reference in New Issue
Block a user