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.
 
 
 
 
 

18 lines
932 B

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherited the Purchase Order form view to add a new button -->
<record id="purchase_order_view_form" model="ir.ui.view">
<field name="name">purchase.order.view.form.inherit.purchase.down.payment</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="replace">
<button name="%(purchase_down_payment.action_purchase_bill_advance)d"
string="Create Bill"
attrs="{'invisible': ['|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'in', ('no', 'invoiced'))]}"
type="action" data-hotkey="w"/>
</xpath>
</field>
</record>
</odoo>