purchase_export_bc/views/purchase_order_views.xml

14 lines
636 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_purchase_order_form_inherit_export_bc" model="ir.ui.view">
<field name="name">purchase.order.form.inherit.export.bc</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<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')"/>
</xpath>
</field>
</record>
</odoo>