<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- ========== SALES TAXES ========== -->

    <!-- Sales of Goods 20% -->
    <record id="l10n_ee_vat_out_20_g" model="account.tax.template">
        <field name="sequence">10</field>
        <field name="name">20% G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_1_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_1_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Goods 22% -->
    <record id="l10n_ee_vat_out_22_g" model="account.tax.template">
        <field name="sequence">11</field>
        <field name="name">22% G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_1_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_1_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Goods 24% -->
    <record id="l10n_ee_vat_out_24_g" model="account.tax.template">
        <field name="sequence">12</field>
        <field name="name">24% G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_1_24_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_1_24_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Services 20% -->
    <record id="l10n_ee_vat_out_20_s" model="account.tax.template">
        <field name="sequence">20</field>
        <field name="name">20% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_1_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_1_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Services 22% -->
    <record id="l10n_ee_vat_out_22_s" model="account.tax.template">
        <field name="sequence">21</field>
        <field name="name">22% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_1_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_1_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Services 24% -->
    <record id="l10n_ee_vat_out_24_s" model="account.tax.template">
        <field name="sequence">22</field>
        <field name="name">24% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_1_24_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_1_24_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Goods 9% -->
    <record id="l10n_ee_vat_out_9_g" model="account.tax.template">
        <field name="sequence">30</field>
        <field name="name">9% G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">9</field>
        <field name="amount_type">percent</field>
        <field name="description">9%</field>
        <field name="tax_group_id" ref="tax_group_vat_9"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Services 9% -->
    <record id="l10n_ee_vat_out_9_s" model="account.tax.template">
        <field name="sequence">40</field>
        <field name="name">9% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">9</field>
        <field name="amount_type">percent</field>
        <field name="description">9%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_9"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Goods 5% -->
    <record id="l10n_ee_vat_out_5_g" model="account.tax.template">
        <field name="sequence">50</field>
        <field name="name">5% G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">5</field>
        <field name="amount_type">percent</field>
        <field name="description">5%</field>
        <field name="tax_group_id" ref="tax_group_vat_5"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_2_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_2_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Services 5% -->
    <record id="l10n_ee_vat_out_5_s" model="account.tax.template">
        <field name="sequence">60</field>
        <field name="name">5% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">5</field>
        <field name="amount_type">percent</field>
        <field name="description">5%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_5"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_2_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_2_1_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Services 13% -->
    <record id="l10n_ee_vat_out_13_s" model="account.tax.template">
        <field name="sequence">66</field>
        <field name="name">13% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">13</field>
        <field name="amount_type">percent</field>
        <field name="description">13%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_13"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_2_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_2_2_tag')],
            }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales of Goods 0% -->
    <record id="l10n_ee_vat_out_0_g" model="account.tax.template">
        <field name="sequence">70</field>
        <field name="name">0% G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_3_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_3_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales of Services 0% -->
    <record id="l10n_ee_vat_out_0_s" model="account.tax.template">
        <field name="sequence">80</field>
        <field name="name">0% S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_3_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_3_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales of Goods in EU 0% IC -->
    <record id="l10n_ee_vat_out_0_eu_g" model="account.tax.template">
        <field name="sequence">90</field>
        <field name="name">0% EU G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_3_1_1_tag'),
                    ref('tax_report_line_ec_goods_tag'),
                ],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_3_1_1_tag'),
                    ref('tax_report_line_ec_goods_tag'),
                ],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales of Goods in EU (Reseller in Triangular Transaction) 0% IC -->
    <record id="l10n_ee_vat_out_0_eu_g_t" model="account.tax.template">
        <field name="sequence">100</field>
        <field name="name">0% EU G Trian</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU T</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_ec_triangular_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_ec_triangular_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales of Services in EU 0% IC -->
    <record id="l10n_ee_vat_out_0_eu_s" model="account.tax.template">
        <field name="sequence">110</field>
        <field name="name">0% EU S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_3_1_tag'),
                    ref('tax_report_line_ec_services_tag'),
                ],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_3_1_tag'),
                    ref('tax_report_line_ec_services_tag'),
                ],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Export of Goods 0% -->
    <record id="l10n_ee_vat_out_0_exp_g" model="account.tax.template">
        <field name="sequence">120</field>
        <field name="name">0% EX G</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_3_2_tag'),
                ],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_3_2_tag'),
                ],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales to Passengers 0% -->
    <record id="l10n_ee_vat_out_0_pas" model="account.tax.template">
        <field name="sequence">130</field>
        <field name="name">0% Passengers</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_3_2_1_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_3_2_1_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Export of Services 0% -->
    <record id="l10n_ee_vat_out_0_exp_s" model="account.tax.template">
        <field name="sequence">140</field>
        <field name="name">0% EX S</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_3_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_3_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales exempt from VAT -->
    <record id="l10n_ee_vat_out_exempt" model="account.tax.template">
        <field name="sequence">150</field>
        <field name="name">0% Exempt</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">Exempt</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_8_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_8_tag')],
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Sales 0% under KMS §41¹ -->
    <record id="l10n_ee_vat_out_0_kms_41_1" model="account.tax.template">
        <field name="sequence">160</field>
        <field name="name">0% KMS §41¹</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20% Special</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="l10n_ee_kmd_inf_code">2</field>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_9_tag')],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_9_tag')],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales 0% under KMS §41¹ 22% Special-->
    <record id="l10n_ee_vat_out_0_kms_41_2" model="account.tax.template">
        <field name="sequence">161</field>
        <field name="name">0% KMS §41¹</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22% Special</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="l10n_ee_kmd_inf_code">2</field>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_9_tag')],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_9_tag')],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Sales 0% under KMS §41¹ 24% Special-->
    <record id="l10n_ee_vat_out_0_kms_41_3" model="account.tax.template">
        <field name="sequence">162</field>
        <field name="name">0% KMS §41¹</field>
        <field name="type_tax_use">sale</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24% Special</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="l10n_ee_kmd_inf_code">2</field>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [ref('tax_report_line_9_tag')],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [ref('tax_report_line_9_tag')],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- ========== PURCHASE TAXES ========== -->

    <!-- Purchase of Goods 20% -->
    <record id="l10n_ee_vat_in_20_g" model="account.tax.template">
        <field name="sequence">170</field>
        <field name="name">20% G</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods 22% -->
    <record id="l10n_ee_vat_in_22_g" model="account.tax.template">
        <field name="sequence">171</field>
        <field name="name">22% G</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods 24% -->
    <record id="l10n_ee_vat_in_24_g" model="account.tax.template">
        <field name="sequence">172</field>
        <field name="name">24% G</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Services 20% -->
    <record id="l10n_ee_vat_in_20_s" model="account.tax.template">
        <field name="sequence">180</field>
        <field name="name">20% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Services 22% -->
    <record id="l10n_ee_vat_in_22_s" model="account.tax.template">
        <field name="sequence">181</field>
        <field name="name">22% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Services 24% -->
    <record id="l10n_ee_vat_in_24_s" model="account.tax.template">
        <field name="sequence">182</field>
        <field name="name">24% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods 9% -->
    <record id="l10n_ee_vat_in_9_g" model="account.tax.template">
        <field name="sequence">190</field>
        <field name="name">9% G</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">9</field>
        <field name="amount_type">percent</field>
        <field name="description">9%</field>
        <field name="tax_group_id" ref="tax_group_vat_9"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Services 9% -->
    <record id="l10n_ee_vat_in_9_s" model="account.tax.template">
        <field name="sequence">200</field>
        <field name="name">9% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">9</field>
        <field name="amount_type">percent</field>
        <field name="description">9%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_9"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods 5% -->
    <record id="l10n_ee_vat_in_5_g" model="account.tax.template">
        <field name="sequence">210</field>
        <field name="name">5% G</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">5</field>
        <field name="amount_type">percent</field>
        <field name="description">5%</field>
        <field name="tax_group_id" ref="tax_group_vat_5"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Services 5% -->
    <record id="l10n_ee_vat_in_5_s" model="account.tax.template">
        <field name="sequence">220</field>
        <field name="name">5% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">5</field>
        <field name="amount_type">percent</field>
        <field name="description">5%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_5"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Services 13% -->
    <record id="l10n_ee_vat_in_13_s" model="account.tax.template">
        <field name="sequence">225</field>
        <field name="name">13% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">13</field>
        <field name="amount_type">percent</field>
        <field name="description">13%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_13"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods 0% -->
    <record id="l10n_ee_vat_in_0_g" model="account.tax.template">
        <field name="sequence">230</field>
        <field name="name">0% G</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Purchase of Services 0% -->
    <record id="l10n_ee_vat_in_0_s" model="account.tax.template">
        <field name="sequence">240</field>
        <field name="name">0% S</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Purchase of Goods in EU 0% IC -->
    <record id="l10n_ee_vat_in_0_eu_g" model="account.tax.template">
        <field name="sequence">250</field>
        <field name="name">0% EU G 20%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_1_tag'),
                    ref('tax_report_line_6_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_1_tag'),
                    ref('tax_report_line_6_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods in EU 0% IC 22 %-->
    <record id="l10n_ee_vat_in_0_eu_g_22" model="account.tax.template">
        <field name="sequence">251</field>
        <field name="name">0% EU G 22%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_2_tag'),
                    ref('tax_report_line_6_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_2_tag'),
                    ref('tax_report_line_6_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase of Goods in EU 0% IC 24 %-->
    <record id="l10n_ee_vat_in_0_eu_g_24" model="account.tax.template">
        <field name="sequence">252</field>
        <field name="name">0% EU G 24%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_24_tag'),
                    ref('tax_report_line_6_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_24_tag'),
                    ref('tax_report_line_6_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase of Services in EU 0% IC -->
    <record id="l10n_ee_vat_in_0_eu_s" model="account.tax.template">
        <field name="sequence">260</field>
        <field name="name">0% EU S 20%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_1_tag'),
                    ref('tax_report_line_6_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_1_tag'),
                    ref('tax_report_line_6_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase of Services in EU 0% IC 22 %-->
    <record id="l10n_ee_vat_in_0_eu_s_22" model="account.tax.template">
        <field name="sequence">261</field>
        <field name="name">0% EU S 22%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_2_tag'),
                    ref('tax_report_line_6_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_2_tag'),
                    ref('tax_report_line_6_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase of Services in EU 0% IC 24 %-->
    <record id="l10n_ee_vat_in_0_eu_s_24" model="account.tax.template">
        <field name="sequence">262</field>
        <field name="name">0% EU S 24%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">0% EU</field>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_24_tag'),
                    ref('tax_report_line_6_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_24_tag'),
                    ref('tax_report_line_6_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase 20% - Car -->
    <record id="l10n_ee_vat_in_20_car" model="account.tax.template">
        <field name="sequence">270</field>
        <field name="name">20% Car</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="active" eval="False"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_3_tag'),
                ],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_3_tag'),
                ],
            }),
        ]"/>
    </record>

    <!-- Purchase 20% - Car 50% -->
    <record id="l10n_ee_vat_in_20_car_part" model="account.tax.template">
        <field name="sequence">280</field>
        <field name="name">20% Car 50%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_4_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_4_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
            }),
        ]"/>
    </record>

    <!-- Purchase 22% - Car -->
    <record id="l10n_ee_vat_in_22_car" model="account.tax.template">
        <field name="sequence">271</field>
        <field name="name">22% Car</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_3_tag'),
                ],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_3_tag'),
                ],
            }),
        ]"/>
    </record>

    <!-- Purchase 24% - Car -->
    <record id="l10n_ee_vat_in_24_car" model="account.tax.template">
        <field name="sequence">272</field>
        <field name="name">24% Car</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_3_tag'),
                ],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_3_tag'),
                ],
            }),
        ]"/>
    </record>

    <!-- Purchase 22% - Car 50% -->
    <record id="l10n_ee_vat_in_22_car_part" model="account.tax.template">
        <field name="sequence">281</field>
        <field name="name">22% Car 50%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_4_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_4_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
            }),
        ]"/>
    </record>

    <!-- Purchase 24% - Car 50% -->
    <record id="l10n_ee_vat_in_24_car_part" model="account.tax.template">
        <field name="sequence">282</field>
        <field name="name">24% Car 50%</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_4_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_4_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 50,
                'repartition_type': 'tax',
            }),
        ]"/>
    </record>

    <!-- Purchase 20% - Fixed Assets -->
    <record id="l10n_ee_vat_in_20_assets" model="account.tax.template">
        <field name="sequence">290</field>
        <field name="name">20% Fixed Assets</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201202'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_2_tag'),
                ],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201202'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_2_tag'),
                ],
            }),
        ]"/>
    </record>

    <!-- Purchase 22% - Fixed Assets -->
    <record id="l10n_ee_vat_in_22_assets" model="account.tax.template">
        <field name="sequence">291</field>
        <field name="name">22% Fixed Assets</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201202'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_2_tag'),
                ],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201202'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_2_tag'),
                ],
            }),
        ]"/>
    </record>

    <!-- Purchase 24% - Fixed Assets -->
    <record id="l10n_ee_vat_in_24_assets" model="account.tax.template">
        <field name="sequence">292</field>
        <field name="name">24% Fixed Assets</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201202'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_2_tag'),
                ],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201202'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_2_tag'),
                ],
            }),
        ]"/>
    </record>

    <!-- Import VAT at Customs -->
    <record id="l10n_ee_vat_in_imp_cus" model="account.tax.template">
        <field name="sequence">300</field>
        <field name="name">EX VAT Customs</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">Import VAT</field>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ]
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ]
            }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Import 20% (KMS §38 - Reverse Charge) -->
    <record id="l10n_ee_vat_in_20_imp_kms_38" model="account.tax.template">
        <field name="sequence">310</field>
        <field name="name">20% EX KMS §38</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">20%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'minus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'plus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
    </record>

    <!-- Import 22% (KMS §38 - Reverse Charge) -->
    <record id="l10n_ee_vat_in_22_imp_kms_38" model="account.tax.template">
        <field name="sequence">311</field>
        <field name="name">22% EX KMS §38</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">22%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'minus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'plus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
    </record>

    <!-- Import 24% (KMS §38 - Reverse Charge) -->
    <record id="l10n_ee_vat_in_24_imp_kms_38" model="account.tax.template">
        <field name="sequence">312</field>
        <field name="name">24% EX KMS §38</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">24%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'minus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'plus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
    </record>

    <!-- Import 13% (KMS §38 - Reverse Charge) -->
    <record id="l10n_ee_vat_in_13_imp_kms_38" model="account.tax.template">
        <field name="sequence">312</field>
        <field name="name">13% EX KMS §38</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">13</field>
        <field name="amount_type">percent</field>
        <field name="description">13% EX KMS §38</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_13"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'minus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'plus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
    </record>

    <!-- Import 9% (KMS §38 - Reverse Charge) -->
    <record id="l10n_ee_vat_in_9_imp_kms_38" model="account.tax.template">
        <field name="sequence">330</field>
        <field name="name">9% EX KMS §38</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">9</field>
        <field name="amount_type">percent</field>
        <field name="description">9%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_9"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'minus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'plus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
    </record>

    <!-- Import 5% (KMS §38 - Reverse Charge) -->
    <record id="l10n_ee_vat_in_5_imp_kms_38" model="account.tax.template">
        <field name="sequence">350</field>
        <field name="name">5% EX KMS §38</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">5</field>
        <field name="amount_type">percent</field>
        <field name="description">5%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_5"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'minus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [
                    ref('tax_report_line_5_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
                'plus_report_expression_ids': [ref('tax_report_line_4_1_tag')],
            }),
        ]"/>
    </record>

    <!-- Import 0% -->
    <record id="l10n_ee_vat_in_0_imp" model="account.tax.template">
        <field name="sequence">360</field>
        <field name="name">0% EX</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">0</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_0"/>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, { 'repartition_type': 'base' }),
            (0,0, { 'repartition_type': 'tax' }),
        ]"/>
    </record>

    <!-- Purchase 0% under KMS §41¹ -->
    <record id="l10n_ee_vat_in_0_kms_41_1" model="account.tax.template">
        <field name="sequence">370</field>
        <field name="name">0% KMS §41¹</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">20</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_20"/>
        <field name="l10n_ee_kmd_inf_code">12</field>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_1_tag'),
                    ref('tax_report_line_7_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_1_tag'),
                    ref('tax_report_line_7_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase 0% under KMS §41¹ -->
    <record id="l10n_ee_vat_in_0_kms_41_2" model="account.tax.template">
        <field name="sequence">370</field>
        <field name="name">0% KMS §41¹</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">22</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_22"/>
        <field name="l10n_ee_kmd_inf_code">12</field>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_2_tag'),
                    ref('tax_report_line_7_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_2_tag'),
                    ref('tax_report_line_7_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>

    <!-- Purchase 0% under KMS §41¹ -->
    <record id="l10n_ee_vat_in_0_kms_41_3" model="account.tax.template">
        <field name="sequence">371</field>
        <field name="name">0% KMS §41¹</field>
        <field name="type_tax_use">purchase</field>
        <field name="amount">24</field>
        <field name="amount_type">percent</field>
        <field name="description">0%</field>
        <field name="active" eval="False"/>
        <field name="tax_group_id" ref="tax_group_vat_24"/>
        <field name="l10n_ee_kmd_inf_code">12</field>
        <field name="chart_template_id" ref="l10nee_chart_template"/>
        <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'plus_report_expression_ids': [
                    ref('tax_report_line_1_24_tag'),
                    ref('tax_report_line_7_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'plus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
        <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
            (0,0, {
                'repartition_type': 'base',
                'minus_report_expression_ids': [
                    ref('tax_report_line_1_24_tag'),
                    ref('tax_report_line_7_1_tag'),
                ],
            }),
            (0,0, {
                'factor_percent': 100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201201'),
                'minus_report_expression_ids': [ref('tax_report_line_5_tag')],
            }),
            (0,0, {
                'factor_percent': -100,
                'repartition_type': 'tax',
                'account_id': ref('l10n_ee_201204'),
            }),
        ]"/>
    </record>
</odoo>
