委外加工采购单与制造订单进行关联

This commit is contained in:
liaodanlong
2024-12-30 09:38:51 +08:00
parent 304f6ad5ba
commit ee6e457bbd
2 changed files with 45 additions and 0 deletions

View File

@@ -10,6 +10,18 @@
<field name="related_product" optional="show"/>
<field name="part_number" optional="show"/>
</xpath>
<xpath expr="//sheet//div[@class='oe_button_box']" position="inside">
<button class="oe_stat_button" name="action_view_production" type="object" icon="fa-wrench"
attrs="{'invisible': [('production_count', '=', 0)]}"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="production_count"/>
</span>
<span class="o_stat_text">制造订单</span>
</div>
</button>
</xpath>
</field>
</record>
</data>