<?xml version="1.0"?>
<openerp>
    <data>

        <!-- Fiscal Year -->
        <record model="ir.ui.view" id="view_account_invoice_asset_form">
            <field name="name">account.invoice.line.form</field>
            <field name="model">account.invoice.line</field>
            <field name="inherit_id" ref="account.view_invoice_line_form"/>
            <field name="arch" type="xml">
                <field name="account_id" position="after">
                    <field name="asset_category_id"/>
                </field>
            </field>
        </record>
        
        <record model="ir.ui.view" id="view_invoice_asset_category">
            <field name="name">account.invoice.supplier.form</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='invoice_line']/tree/field[@name='quantity']" position="before">
                    <field name="asset_category_id"/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>
