feat: update purchase order export button visibility to include all states except cancel
This commit is contained in:
parent
dd480fe5fd
commit
052c1a1191
@ -6,7 +6,7 @@
|
|||||||
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//header" position="inside">
|
<xpath expr="//header" position="inside">
|
||||||
<button name="action_export_bc" string="Export PO to BC Format" type="object" class="oe_highlight" invisible="state not in ('purchase', 'done')"/>
|
<button name="action_export_bc" string="Export PO to BC Format" type="object" class="oe_highlight" invisible="state == 'cancel'"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user