~camptocamp/account-invoicing/correct_payment_term_balance_mdh

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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

        <record model="ir.ui.view" id="account_invoice_form_int_number">
            <field name="name">account.invoice.form.int_number</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="arch" type="xml">
                <xpath expr="//sheet/group/group/field[@name='fiscal_position']" position="after">
                    <field name="internal_number" attrs="{'invisible':[('state','!=','draft')]}" string="Force Number" help="Force invoice number. Use this field if you don't want to use the default numbering"/>
                </xpath>
            </field>
        </record>
        
        <record model="ir.ui.view" id="account_invoice_supplier_form_int_number">
            <field name="name">account.invoice.supplier.form.int_number</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
            <field name="arch" type="xml">
                <xpath expr="//sheet/group/group/field[@name='fiscal_position']" position="after">
                    <field name="internal_number" attrs="{'invisible':[('state','!=','draft')]}" string="Force Number" help="Force invoice number. Use this field if you don't want to use the default numbering"/>
                </xpath>
            </field>
        </record>

</data>
</openerp>