~unifield-team/unifield-wm/us-826

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="invoice_form_3" model="ir.ui.view">
            <field name="name">account.invoice.form.3</field>
            <field name="model">account.invoice</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="priority">40</field>
            <field name="arch" type="xml">
                <button name='invoice_open' position="after">
                    <button name="button_split_invoice" states="draft,proforma2" type="object" string="Split Invoice" icon="gtk-cut"/>
                </button>
            </field>
        </record>
            
        <record id="invoice_supplier_form_3" model="ir.ui.view">
            <field name="name">account.invoice.supplier.form.3</field>
            <field name="model">account.invoice</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
            <field name="priority">45</field>
            <field name="arch" type="xml">
                <button name='invoice_open' position="after">
                    <button name="button_split_invoice" states="draft,proforma2" type="object" string="Split Invoice" icon="gtk-cut"/>
                </button>
            </field>
        </record>

    </data>
</openerp>