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.
20 lines
916 B
20 lines
916 B
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--Inherit view_order_form for adding 'Print Invoice'
|
|
button and 'automate_print_invoices' field-->
|
|
<record id="view_order_form" model="ir.ui.view">
|
|
<field name="name">sale.order.view.form.inherit.sale.purchase.automated
|
|
</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header/button[@name='action_quotation_send']"
|
|
position="after">
|
|
<field name="automate_print_invoices" invisible="1"/>
|
|
<button string="Print Invoice" class="oe_highlight"
|
|
type="object" name="action_print_invoice"
|
|
invisible="automate_print_invoices==False or invoice_count==0"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|