~camptocamp/account-invoicing/correct_payment_term_balance_mdh

11.2.1 by Lorenzo Battistini
[ADD] account_invoice_force_number
1
<?xml version="1.0" encoding="utf-8"?>
2
<openerp>
3
<data>
4
5
        <record model="ir.ui.view" id="account_invoice_form_int_number">
6
            <field name="name">account.invoice.form.int_number</field>
7
            <field name="model">account.invoice</field>
8
            <field name="inherit_id" ref="account.invoice_form"/>
9
            <field name="arch" type="xml">
18.5.4 by Alex Comba
[FIX] xpath values in invoice_view.xml
10
                <xpath expr="//sheet/group/group/field[@name='fiscal_position']" position="after">
11.2.1 by Lorenzo Battistini
[ADD] account_invoice_force_number
11
                    <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"/>
12
                </xpath>
13
            </field>
14
        </record>
14.1.1 by Lorenzo Battistini
[IMP] account_invoice_force_number does not work for supplier invoices
15
        
16
        <record model="ir.ui.view" id="account_invoice_supplier_form_int_number">
17
            <field name="name">account.invoice.supplier.form.int_number</field>
18
            <field name="model">account.invoice</field>
19
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
20
            <field name="arch" type="xml">
18.5.4 by Alex Comba
[FIX] xpath values in invoice_view.xml
21
                <xpath expr="//sheet/group/group/field[@name='fiscal_position']" position="after">
14.1.1 by Lorenzo Battistini
[IMP] account_invoice_force_number does not work for supplier invoices
22
                    <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"/>
23
                </xpath>
24
            </field>
25
        </record>
11.2.1 by Lorenzo Battistini
[ADD] account_invoice_force_number
26
27
</data>
28
</openerp>