调整字段显隐

This commit is contained in:
mgw
2025-03-31 09:11:21 +08:00
parent 5bf86930e9
commit 0af9064fce
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@
<field name="lot_id" position="after">
<field name="workorder_id" invisible="1"/>
<field name="production_id" invisible="1"/>
<field name="finished_lot_id" attrs="{'invisible': [('finished_lot_id', '=', False)]}" groups="stock.group_production_lot"/>
<!-- <field name="finished_lot_id" attrs="{'invisible': [('finished_lot_id', '=', False)]}" groups="stock.group_production_lot"/> -->
</field>
<xpath expr="//field[@name='lot_id']" position="after">
<field name="lot_id" attrs="{'invisible': [('workorder_id', '=', False)]}" groups="stock.group_production_lot" string="Component Lot/Serial"/>