<openerp>
    <data noupdate="1">
     <!-- SOME DATA IN THIS FILE ARE DUPLICATED ON VAT2011.XML IT WILL ALLOWS EASY FUTURE REMOVAL OF THIS FILE IN 2012 2013. -->
       <!--   SOME UNUSED TAX CODE ARE STILL KEPT IN ORDER TO ALLOW MORE EASY MIGRATION FORM V5 -->
        <record model="account.tax.code.template" id="vat_code_balance_net">
            <field name="name">Solde de TVA a payer a l'AFC</field>
            <field name="code">500</field>
            <field name="parent_id" ref="vat_code_chart_root"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_tva">
            <field name="name">TVA Due </field>
            <field name="code">399</field>
            <field name="parent_id" ref="vat_code_balance_net"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_tva76">
            <field name="name">TVA due a 7.6% (TN)</field>
            <field name="code">300b</field>
            <field name="parent_id" ref="vat_code_due_tva"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_tva24">
            <field name="name">TVA due a 2.4% (TR)</field>
            <field name="code">310b</field>
            <field name="parent_id" ref="vat_code_due_tva"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_tva36">
            <field name="name">TVA due a 3.6% (TS)</field>
            <field name="code">340b</field>
            <field name="parent_id" ref="vat_code_due_tva"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_payable">
            <field name="name">TVA préalable sur acquisitions (a récupérer)</field>
            <field name="code">479</field>
            <field name="parent_id" ref="vat_code_balance_net"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_payable_bs">
            <field name="name">TVA préalable sur biens et services</field>
            <field name="code">400</field>
            <field name="parent_id" ref="vat_code_payable"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_payable_invest">
            <field name="name">TVA préalable sur invest. et autres ch.</field>
            <field name="code">405</field>
            <field name="parent_id" ref="vat_code_payable"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_base_net">
            <field name="name">Base de calcul de TVA</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_chart_root"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_base_ca_total">
            <field name="name">Chiffre d'affaires - total</field>
            <field name="code">200</field>
            <field name="parent_id" ref="vat_code_base_net"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_base_due">
            <field name="name">Chiffre d'affaires imposable</field>
            <field name="code">299</field>
            <field name="parent_id" ref="vat_code_base_ca_total"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_76">
            <field name="name">Chiffre d'affaires imposable a 7.6% (TN)</field>
            <field name="code">300a</field>
            <field name="parent_id" ref="vat_code_base_due"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_24">
            <field name="name">Chiffre d'affaires imposable a 2.4% (TR)</field>
            <field name="code">310a</field>
            <field name="parent_id" ref="vat_code_base_due"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_36">
            <field name="name">Chiffre d'affaires imposable a 3.6% (TS)</field>
            <field name="code">340a</field>
            <field name="parent_id" ref="vat_code_base_due"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_0">
            <field name="name">Chiffre d'affaires imposable a 0% (export)</field>
            <field name="code">200-220</field>
            <field name="parent_id" ref="vat_code_base_ca_total"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_due_0_exclu">
            <field name="name">Chiffre d'affaires non-imposable a 0% (exclu)</field>
            <field name="code">200-230</field>
            <field name="parent_id" ref="vat_code_base_ca_total"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_net">
            <field name="name">Acquisition - total</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_base_net"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base">
            <field name="name">Acquisition de biens et services</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_net"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_0">
            <field name="name">Acquisition de biens et services a 0%</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_76">
            <field name="name">Acquisition de biens et services a 7.6% (TN)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_24">
            <field name="name">Acquisition de biens et services a 2.4% (TR)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_36">
            <field name="name">Acquisition de biens et services a 3.6% (TS)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_24_50%">
            <field name="name">Acquisition de biens et services a 2.4% récup. à 50% (TR)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_76_50%">
            <field name="name">Acquisition de biens et services a 7.6% récup. à 50% (TN)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_36_50%">
            <field name="name">Acquisition de biens et services a 3.6% récup. à 50% (TS)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_invest">
            <field name="name">Acquisition de biens d'invest. et autres charges</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_net"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_invest76">
            <field name="name">Acquisition de biens d'invest. et autres charges a 7.6% (TN)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base_invest"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_invest24">
            <field name="name">Acquisition de biens d'invest. et autres charges a 2.4% (TR)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base_invest"/>
        </record>
        <record model="account.tax.code.template" id="vat_code_receivable_base_invest36">
            <field name="name">Acquisition de biens d'invest. et autres charges a 3.6% (TS)</field>
            <field name="code"/>
            <field name="parent_id" ref="vat_code_receivable_base_invest"/>
        </record>
        <!--
        #  TVA - Taxe sur la Valeur Ajoutée
        -->
        <record model="account.tax.template" id="vat_24">
            <field name="name">TVA due a 2.4% (TR)</field>
            <field name="amount" eval="0.024"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_due_24"/>
            <field name="tax_code_id" ref="vat_code_due_tva24"/>
            <field name="ref_base_code_id" ref="vat_code_due_24"/>
            <field name="ref_tax_code_id" ref="vat_code_due_tva24"/>
            <field name="base_sign" eval="1.0"/>
            <field name="tax_sign" eval="1.0"/>
            <field name="ref_base_sign" eval="-1.0"/>
            <field name="ref_tax_sign" eval="-1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="account_collected_id" ref="ch_1170"/>
            <field name="account_paid_id" ref="ch_1170"/>
            <field name="type_tax_use">sale</field>
        </record>
        <record model="account.tax.template" id="vat_24_purchase">
            <field name="name">TVA 2.4% sur achat B&amp;S (TR)</field>
            <field name="amount" eval="0.024"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_receivable_base_24"/>
            <field name="tax_code_id" ref="vat_code_payable_bs"/>
            <field name="ref_base_code_id" ref="vat_code_receivable_base_24"/>
            <field name="ref_tax_code_id" ref="vat_code_payable_bs"/>
            <field name="python_compute">result = round((price_unit * 0.024) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.024))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="-1.0"/>
            <field name="tax_sign" eval="-1.0"/>
            <field name="ref_base_sign" eval="1.0"/>
            <field name="ref_tax_sign" eval="1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">purchase</field>
            <field name="account_collected_id" ref="ch_1171"/>
            <field name="account_paid_id" ref="ch_1171"/>
        </record>
        <record model="account.tax.template" id="vat_24_invest">
            <field name="name">TVA 2.4% sur invest. et autres ch. (TR)</field>
            <field name="amount" eval="0.024"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_receivable_base_invest24"/>
            <field name="tax_code_id" ref="vat_code_payable_invest"/>
            <field name="ref_base_code_id" ref="vat_code_receivable_base_invest24"/>
            <field name="ref_tax_code_id" ref="vat_code_payable_invest"/>
            <field name="python_compute">result = round((price_unit * 0.024) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.024))) /  0.05) * 0.05</field>
            <field name="base_sign" eval="-1.0"/>
            <field name="tax_sign" eval="-1.0"/>
            <field name="ref_base_sign" eval="1.0"/>
            <field name="ref_tax_sign" eval="1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">purchase</field>
            <field name="account_collected_id" ref="ch_1171"/>
            <field name="account_paid_id" ref="ch_1171"/>
        </record>
        
        <record model="account.tax.template" id="vat_36">
            <field name="name">TVA due a 3.6% (TS)</field>
            <field name="amount" eval="0.036"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_due_36"/>
            <field name="tax_code_id" ref="vat_code_due_tva36"/>
            <field name="ref_base_code_id" ref="vat_code_due_36"/>
            <field name="ref_tax_code_id" ref="vat_code_due_tva36"/>
            <field name="python_compute">result = round((price_unit * 0.036) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.036))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="1.0"/>
            <field name="tax_sign" eval="1.0"/>
            <field name="ref_base_sign" eval="-1.0"/>
            <field name="ref_tax_sign" eval="-1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">sale</field>
            <field name="account_collected_id" ref="ch_1170"/>
            <field name="account_paid_id" ref="ch_1170"/>
        </record>
        <record model="account.tax.template" id="vat_36_purchase">
            <field name="name">TVA 3.6% sur achat B&amp;S (TS)</field>
            <field name="amount" eval="0.036"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_receivable_base_36"/>
            <field name="tax_code_id" ref="vat_code_payable_bs"/>
            <field name="ref_base_code_id" ref="vat_code_receivable_base_36"/>
            <field name="ref_tax_code_id" ref="vat_code_payable_bs"/>
            <field name="python_compute">result = round((price_unit * 0.036) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.036))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="-1.0"/>
            <field name="tax_sign" eval="-1.0"/>
            <field name="ref_base_sign" eval="1.0"/>
            <field name="ref_tax_sign" eval="1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">purchase</field>
            <field name="account_collected_id" ref="ch_1171"/>
            <field name="account_paid_id" ref="ch_1171"/>
        </record>
        <record model="account.tax.template" id="vat_36_invest">
            <field name="name">TVA 3.6% sur invest. et autres ch. (TS)</field>
            <field name="amount" eval="0.036"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_receivable_base_invest36"/>
            <field name="tax_code_id" ref="vat_code_payable_invest"/>
            <field name="ref_base_code_id" ref="vat_code_receivable_base_invest36"/>
            <field name="ref_tax_code_id" ref="vat_code_payable_invest"/>
            <field name="python_compute">result = round((price_unit * 0.036) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.036))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="-1.0"/>
            <field name="tax_sign" eval="-1.0"/>
            <field name="ref_base_sign" eval="1.0"/>
            <field name="ref_tax_sign" eval="1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">purchase</field>
            <field name="account_collected_id" ref="ch_1171"/>
            <field name="account_paid_id" ref="ch_1171"/>
        </record>
        <record model="account.tax.template" id="vat_76">
            <field name="name">TVA due a 7.6% (TN)</field>
            <field name="amount" eval="0.076"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_due_76"/>
            <field name="tax_code_id" ref="vat_code_due_tva76"/>
            <field name="ref_base_code_id" ref="vat_code_due_76"/>
            <field name="ref_tax_code_id" ref="vat_code_due_tva76"/>
            <field name="python_compute">result = round((price_unit * 0.076) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.076))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="1.0"/>
            <field name="tax_sign" eval="1.0"/>
            <field name="ref_base_sign" eval="-1.0"/>
            <field name="ref_tax_sign" eval="-1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">sale</field>
            <field name="account_collected_id" ref="ch_1170"/>
            <field name="account_paid_id" ref="ch_1170"/>
        </record>
        <record model="account.tax.template" id="vat_76_purchase">
            <field name="name">TVA 7.6% sur achat B&amp;S</field>
            <field name="amount" eval="0.076"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_receivable_base_76"/>
            <field name="tax_code_id" ref="vat_code_payable_bs"/>
            <field name="ref_base_code_id" ref="vat_code_receivable_base_76"/>
            <field name="ref_tax_code_id" ref="vat_code_payable_bs"/>
            <field name="python_compute">result = round((price_unit * 0.076) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.076))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="-1.0"/>
            <field name="tax_sign" eval="-1.0"/>
            <field name="ref_base_sign" eval="1.0"/>
            <field name="ref_tax_sign" eval="1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">purchase</field>
            <field name="account_collected_id" ref="ch_1171"/>
            <field name="account_paid_id" ref="ch_1171"/>
        </record>
        <record model="account.tax.template" id="vat_76_invest">
            <field name="name">TVA 7.6% sur invest. et autres ch. (TN)</field>
            <field name="amount" eval="0.076"/>
            <field name="type">percent</field>
            <field name="base_code_id" ref="vat_code_receivable_base_invest76"/>
            <field name="tax_code_id" ref="vat_code_payable_invest"/>
            <field name="ref_base_code_id" ref="vat_code_receivable_base_invest76"/>
            <field name="ref_tax_code_id" ref="vat_code_payable_invest"/>
            <field name="python_compute">result = round((price_unit * 0.076) / 0.05) * 0.05</field>
            <field name="python_compute_inv">result = round((price_unit * ( 1 - (1 / 1.076))) / 0.05) * 0.05</field>
            <field name="base_sign" eval="-1.0"/>
            <field name="tax_sign" eval="-1.0"/>
            <field name="ref_base_sign" eval="1.0"/>
            <field name="ref_tax_sign" eval="1.0"/>
            <field name="chart_template_id" ref="l10nch_chart_template"/>
            <field name="type_tax_use">purchase</field>
            <field name="account_collected_id" ref="ch_1171"/>
            <field name="account_paid_id" ref="ch_1171"/>
        </record>
    </data>
</openerp>
