修复报废

This commit is contained in:
jinling.yang
2024-08-26 17:31:14 +08:00
parent f1780181fa
commit e662490cb5
7 changed files with 137 additions and 89 deletions

View File

@@ -201,6 +201,19 @@
data-hotkey="l"/>
</xpath>
<!-- <xpath expr="//header//button[@name='action_view_mo_delivery']" position="after">-->
<!-- <button class="oe_stat_button" name="action_view_remanufacture_productions" type="object"-->
<!-- icon="fa-wrench" attrs="{'invisible': [('remanufacture_count', '=', 0)]}"-->
<!-- groups="mrp.group_mrp_user">-->
<!-- <div class="o_field_widget o_stat_info">-->
<!-- <span class="o_stat_value">-->
<!-- <field name="remanufacture_count"/>-->
<!-- </span>-->
<!-- <span class="o_stat_text">新的制造</span>-->
<!-- </div>-->
<!-- </button>-->
<!-- </xpath>-->
<xpath expr="//header//button[@name='action_toggle_is_locked']" position="replace">
<button name="action_toggle_is_locked"
attrs="{'invisible': ['|', ('show_lock', '=', False), ('is_locked', '=', True)]}"

View File

@@ -218,7 +218,7 @@
<xpath expr="//label[1]" position="before">
<field name='routing_type' readonly="1"/>
<field name='process_state' attrs='{"invisible": [("routing_type","!=","装夹预调")]}'/>
<field name="rfid_code" force_save="1" readonly="1" cache="True"
<field name="rfid_code" force_save="1" readonly="0" cache="True"
attrs="{'invisible': [('rfid_code_old', '!=', False)]}"/>
<field name="rfid_code_old" readonly="1" attrs="{'invisible': [('rfid_code_old', '=', False)]}"/>
</xpath>