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

    <!-- Tax Code Definitions -->

    <record model="account.tax.code.template" id="vat_code_tax">
        <field name="name">Tờ khai thuế GTGT</field>
        <field name="code">MAIN</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in">
        <field name="name">HHDV mua vào</field>
        <field name="parent_id" ref="vat_code_tax"/>
        <field name="code">IN</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out">
        <field name="name">HHDV bán ra</field>
        <field name="parent_id" ref="vat_code_tax"/>
        <field name="code">OUT</field>
    </record>
    
    <!-- Tax base -->
    <record model="account.tax.code.template" id="vat_code_tax_in_local_base">
        <field name="name">Giá trị HHDV mua vào</field>
        <field name="parent_id" ref="vat_code_tax_in"/>
        <field name="code">IN_BASE</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in_local_00_base">
        <field name="name">Giá trị HHDV mua vào chịu thuế 0%</field>
        <field name="parent_id" ref="vat_code_tax_in_local_base"/>
        <field name="code">IN_BASE_00</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in_local_05_base">
        <field name="name">Giá trị HHDV mua vào chịu thuế 5%</field>
        <field name="parent_id" ref="vat_code_tax_in_local_base"/>
        <field name="code">IN_BASE_05</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in_local_10_base">
        <field name="name">Giá trị HHDV mua vào chịu thuế 10%</field>
        <field name="parent_id" ref="vat_code_tax_in_local_base"/>
        <field name="code">IN_BASE_10</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_base">
        <field name="name">Giá trị HHDV bán ra</field>
        <field name="parent_id" ref="vat_code_tax_out"/>
        <field name="code">OUT_BASE</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_00_base">
        <field name="name">Giá trị HHDV bán ra chịu thuế 0%</field>
        <field name="parent_id" ref="vat_code_tax_out_local_base"/>
        <field name="code">OUT_BASE_00</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_05_base">
        <field name="name">Giá trị HHDV bán ra chịu thuế 5%</field>
        <field name="parent_id" ref="vat_code_tax_out_local_base"/>
        <field name="code">OUT_BASE_05</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_10_base">
        <field name="name">Giá trị HHDV bán ra chịu thuế 10%</field>
        <field name="parent_id" ref="vat_code_tax_out_local_base"/>
        <field name="code">OUT_BASE_10</field>
    </record>
    
    <!-- Tax balance -->
    <record model="account.tax.code.template" id="vat_code_tax_in_local_balance">
        <field name="name">Thuế GTGT HHDV mua vào</field>
        <field name="parent_id" ref="vat_code_tax_in"/>
        <field name="code">IN_BALANCE</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in_local_00_balance">
        <field name="name">Thuế GTGT HHDV mua vào chịu thuế 0%</field>
        <field name="parent_id" ref="vat_code_tax_in_local_balance"/>
        <field name="code">IN_BALANCE_00</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in_local_05_balance">
        <field name="name">Thuế GTGT HHDV mua vào chịu thuế 5%</field>
        <field name="parent_id" ref="vat_code_tax_in_local_balance"/>
        <field name="code">IN_BALANCE_05</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_in_local_10_balance">
        <field name="name">Thuế GTGT HHDV mua vào chịu thuế 10%</field>
        <field name="parent_id" ref="vat_code_tax_in_local_balance"/>
        <field name="code">IN_BALANCE_10</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_balance">
        <field name="name">Thuế GTGT HHDV bán ra</field>
        <field name="parent_id" ref="vat_code_tax_out"/>
        <field name="code">OUT_BALANCE</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_00_balance">
        <field name="name">Thuế GTGT HHDV bán ra chịu thuế 0%</field>
        <field name="parent_id" ref="vat_code_tax_out_local_balance"/>
        <field name="code">OUT_BALANCE_00</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_05_balance">
        <field name="name">Thuế GTGT HHDV bán ra chịu thuế 5%</field>
        <field name="parent_id" ref="vat_code_tax_out_local_balance"/>
        <field name="code">OUT_BALANCE_05</field>
    </record>
    
    <record model="account.tax.code.template" id="vat_code_tax_out_local_10_balance">
        <field name="name">Thuế GTGT HHDV bán ra chịu thuế 10%</field>
        <field name="parent_id" ref="vat_code_tax_out_local_balance"/>
        <field name="code">OUT_BALANCE_10</field>
    </record>
</data>
</openerp>
