You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
935 B

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Inherit purchase_order_form for adding 'Print Bill'
button and 'automate_print_bills' field-->
<record id="purchase_order_form" model="ir.ui.view">
<field name="name">
purchase.order.view.form.inherit.sale.purchase.automated
</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//header/button[@name='action_create_invoice']"
position="after">
<field name="automate_print_bills" invisible="1"/>
<button string="Print Bill" class="oe_highlight" type="object"
name="action_print_bill"
invisible="automate_print_bills==False or invoice_count==0"/>
</xpath>
</field>
</record>
</odoo>