<openerp>
    <data noupdate="1">
        <!-- Taxes -->
        <!-- TAX Code Definitions -->

        <!-- Invoiced TAX -->

        <record id="tax_code_chart_root" model="account.tax.code.template">
            <field name="name">Plan Fees </field>
        </record>

            <record id="tax_code_balance_net" model="account.tax.code.template">
                <field name="name">Tax Balance to Pay</field>
                <field name="parent_id" ref="tax_code_chart_root"/>
            </record>

            <!-- Input TAX -->
            <record id="tax_code_input" model="account.tax.code.template">
                <field name="name">Tax Received</field>
                <field name="parent_id" ref="tax_code_balance_net"/>
                <field eval="-1" name="sign"/>
            </record>

                <record id="tax_code_input_S" model="account.tax.code.template">
                    <field name="name">Tax Received at default rate</field>
                    <field name="parent_id" ref="tax_code_input"/>
                </record>


                <record id="tax_code_input_X" model="account.tax.code.template">
                    <field name="name">Tax Received Rate X (Exempt)</field>
                    <field name="parent_id" ref="tax_code_input"/>
                </record>

            <!-- Output TAX -->

            <record id="tax_code_output" model="account.tax.code.template">
                <field name="name">Tax Paid</field>
                <field name="parent_id" ref="tax_code_balance_net"/>
            </record>

                <record id="tax_code_output_S" model="account.tax.code.template">
                    <field name="name">Tax Paid at default rate</field>
                    <field name="parent_id" ref="tax_code_output"/>
                </record>

                <record id="tax_code_output_X" model="account.tax.code.template">
                    <field name="name">Tax Paid Rate X (Exempt)</field>
                    <field name="parent_id" ref="tax_code_output"/>
                </record>


            <!-- Invoiced Base of TAX -->

            <!-- Purchases -->

            <record id="tax_code_base_net" model="account.tax.code.template">
                <field name="name">Tax Bases</field>
                <field name="parent_id" ref="tax_code_chart_root"/>
            </record>

                <record id="tax_code_base_purchases" model="account.tax.code.template">
                    <field name="name">Taxable Purchases Base</field>
                    <field name="parent_id" ref="tax_code_base_net"/>
                </record>

                    <record id="tax_code_purch_S" model="account.tax.code.template">
                        <field name="name">Taxable Purchases at default rate</field>
                        <field name="parent_id" ref="tax_code_base_purchases"/>
                    </record>

                    <record id="tax_code_purch_X" model="account.tax.code.template">
                        <field name="name">Taxable Purchases Type X (Exempt)</field>
                        <field name="parent_id" ref="tax_code_base_purchases"/>
                    </record>

                <!-- Sales -->

                <record id="tax_code_base_sales" model="account.tax.code.template">
                    <field name="name">Base of Taxable Sales</field>
                    <field name="parent_id" ref="tax_code_base_net"/>
                </record>

                    <record id="tax_code_sales_S" model="account.tax.code.template">
                        <field name="name">Taxable Sales at default rate</field>
                        <field name="parent_id" ref="tax_code_base_sales"/>
                    </record>

                    <record id="tax_code_sales_X" model="account.tax.code.template">
                        <field name="name">Taxable Sales Type X (Exempt)</field>
                        <field name="parent_id" ref="tax_code_base_sales"/>
                    </record>
    </data>
</openerp>

