21 lines
921 B
XML
21 lines
921 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- Add Direct Print button to Purchase Order form view -->
|
|
<record id="purchase_order_form_direct_print" model="ir.ui.view">
|
|
<field name="name">purchase.order.form.direct.print</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_direct_print_purchase_order"
|
|
type="object"
|
|
string="Direct Print"
|
|
class="btn-primary"
|
|
invisible="state == 'cancel'"
|
|
groups="purchase.group_purchase_user"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |