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

        <record id="view_account_position_form" model="ir.ui.view">
            <field name="name">account.fiscal.position.form</field>
            <field name="model">account.fiscal.position</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Fiscal Position">
                    <field name="name" select="1"/>
                    <field name="company_id"/>
                    <newline/>
                    <field name="note" colspan="4"/>
                    <field name="tax_ids" colspan="4" widget="one2many_list">
                        <tree string="Tax Mapping" editable="bottom">
                            <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
                            <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
                        </tree>
                        <form string="Tax Mapping">
                            <field name="tax_src_id" domain="[('parent_id','=',False)]"/>
                            <field name="tax_dest_id" domain="[('parent_id','=',False)]"/>
                        </form>
                    </field>
                    <field name="account_ids" colspan="4" widget="one2many_list">
                        <tree string="Account Mapping" editable="bottom">
                            <field name="account_src_id"/>
                            <field name="account_dest_id"/>
                        </tree>
                        <form string="Account Mapping">
                            <field name="account_src_id"/>
                            <field name="account_dest_id"/>
                        </form>
                    </field>
                </form>
            </field>
        </record>
        <record id="view_account_position_tree" model="ir.ui.view">
            <field name="name">account.fiscal.position.tree</field>
            <field name="model">account.fiscal.position</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Fiscal Position">
                    <field name="name"/>
                    <field name="company_id"/>
                </tree>
            </field>
        </record>

        <record id="action_account_fiscal_position_form" model="ir.actions.act_window">
            <field name="name">Fiscal Positions</field>
            <field name="res_model">account.fiscal.position</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem
            action="action_account_fiscal_position_form"
            id="menu_action_account_fiscal_position_form"
            parent="account.menu_finance_accounting" sequence="20"/>

        <!--
        Partners Extension
    -->

        <record id="view_partner_property_form" model="ir.ui.view">
            <field name="name">res.partner.property.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="type">form</field>
            <field name="priority">2</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <notebook>
                    <page string="Accounting" position="inside">
                    <group col="2" colspan="2">
                        <separator string="Customer Accounting Properties" colspan="2"/>
                        <field name="property_account_receivable"/>
                        <field name="property_account_position"/>
                        <field name="property_payment_term"/>
                    </group>
                    <group col="2" colspan="2">
                        <separator string="Supplier Accounting Properties" colspan="2"/>
                        <field name="property_account_payable"/>
                    </group>
                    <group col="2" colspan="2">
                        <separator string="Customer Credit" colspan="2"/>
                        <field name="credit" select="2"/>
                        <field name="credit_limit" select="2"/>
                    </group>
                    <group col="2" colspan="2">
                        <separator string="Supplier Debit" colspan="2"/>
                        <field name="debit" select="2"/>
                    </group>
                    <field colspan="4" context="address=address" name="bank_ids" nolabel="1" select="2">
                        <form string="Bank account">
                            <field name="state" select="2"/>
                            <newline/>
                            <field name="acc_number" select="1"/>
                            <newline/>
                            <field name="bank"/>
                            <newline/>
                            <field name="sequence"/>
                            <field colspan="4" name="name" select="2"/>
                            <separator colspan="4" string="Bank account owner"/>
                            <field colspan="4" name="owner_name"/>
                            <field colspan="4" name="street"/>
                            <newline/>
                            <field name="zip"/>
                            <field name="city"/>
                            <newline/>
                            <field completion="1" name="country_id"/>
                            <field name="state_id"/>
                        </form>
                        <tree string="Bank Details">
                            <field name="state"/>
                            <field name="bank"/>
                            <field name="owner_name"/>
                            <field name="acc_number"/>
                        </tree>
                    </field>
                </page>
                </notebook>
            </field>
        </record>

    </data>
</openerp>
