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
965 B
21 lines
965 B
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Override the account move form view -->
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
<field name="name">account.move.view.form.inherit.product.to.invoice
|
|
</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form"/>
|
|
<field name="arch" type="xml">
|
|
<!-- Insert button inside the button_box div -->
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<!-- Add Products button -->
|
|
<button name="action_add_product" type="object"
|
|
class="oe_stat_button" icon="fa-plus"
|
|
attrs="{'invisible': ['|', ('state', '!=', 'draft'), ('move_type', 'not in', ('in_invoice', 'out_invoice'))]}">
|
|
<span>Add Products</span>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|