<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="account_tax_view_price" model="ir.ui.view">
            <field name="name">account.tax.exlcuded.view.form</field>
            <field name="type">form</field>
            <field name="model">account.tax</field>
            <field name="inherit_id" ref="account.view_tax_form"/>
            <field name="arch" type="xml">
                <field name="python_compute" position="after">
                    <separator colspan="4" string="Compute Code for Taxes included prices"/>
                    <field colspan="4" name="python_compute_inv" nolabel="1"/>
                </field>
            </field>
        </record>

        <record id="account_invoice_view_price" model="ir.ui.view">
            <field name="name">account.invoice.vat.exlcuded.view.form</field>
            <field name="type">form</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="arch" type="xml">
                <field name="payment_term" position="after">
                    <field name="price_type"/>
                </field>
            </field>
        </record>

        <record id="invoice_supplier_form_tax_include" model="ir.ui.view">
            <field name="name">account.invoice.supplier.tax_include</field>
            <field name="type">form</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
            <field name="arch" type="xml">
                <field colspan="4" default_get="{'check_total': check_total, 'invoice_line': invoice_line, 'address_invoice_id': address_invoice_id, 'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False}" name="invoice_line" nolabel="1" position="before">
                    <field name="price_type"/>
                </field>
            </field>
        </record>

        <record id="invoice_supplier_form_tax_include2" model="ir.ui.view">
            <field name="name">account.invoice.supplier.tax_include2</field>
            <field name="type">form</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
            <field name="arch" type="xml">
                <field name="price_subtotal" position="after">
                    <field name="price_subtotal_incl"/>
                </field>
            </field>
        </record>

        <record id="invoice_supplier_form_tax_include3" model="ir.ui.view">
            <field name="name">account.invoice.supplier.tax_include3</field>
            <field name="type">form</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_supplier_form"/>
            <field name="arch" type="xml">
                <field name="product_id" position="replace">
                    <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id,{'company_id': parent.company_id, 'price_type':parent.price_type})"/>
                </field>
            </field>
        </record>

        <record id="view_invoice_line_tree" model="ir.ui.view">
            <field name="name">account.invoice.line.tree</field>
            <field name="model">account.invoice.line</field>
            <field name="type">tree</field>
            <field name="inherit_id" ref="account.view_invoice_line_tree"/>
            <field name="arch" type="xml">
                <field name="price_subtotal" position="after">
                    <field name="price_subtotal_incl"/>
                </field>
            </field>
        </record>

    </data>
</openerp>
