<?xml version="1.0" encoding="utf-8"?>
<odoo auto_sequence="1">
    <record id="tax_report" model="account.report">
        <field name="name">Tax Report</field>
        <field name="root_report_id" ref="account.generic_tax_report"/>
        <field name="country_id" ref="base.et"/>
        <field name="filter_fiscal_position" eval="True"/>
        <field name="availability_condition">country</field>
        <field name="column_ids">
            <record id="tax_report_balance" model="account.report.column">
                <field name="name">Balance</field>
                <field name="expression_label">balance</field>
            </record>
        </field>
        <field name="line_ids">
            <record id="account_tax_report_purch_vt" model="account.report.line">
                <field name="name">Taxable Purchases - VAT</field>
                <field name="aggregation_formula">ET_TAXABLE_PURCHASE_VAT_OUT_OF_SCOPE.balance + ET_TAXABLE_PURCHASE_VAT_EXEMPT.balance + ET_TAXABLE_PURCHASE_VAT_RATED_0.balance + ET_TAXABLE_PURCHASE_VAT_RATED_15.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_purch_vt_out_scope" model="account.report.line">
                        <field name="name">Taxable Purchase VAT Out of Scope</field>
                        <field name="code">ET_TAXABLE_PURCHASE_VAT_OUT_OF_SCOPE</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_purch_vt_out_scope_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Purchase VAT Out of Scope</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_purch_vt_exmpt" model="account.report.line">
                        <field name="name">Taxable Purchase VAT Exempt</field>
                        <field name="code">ET_TAXABLE_PURCHASE_VAT_EXEMPT</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_purch_vt_exmpt_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Purchase VAT Exempt</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_purch_vt_ratd_0" model="account.report.line">
                        <field name="name">Taxable Purchase VAT Rated 0%</field>
                        <field name="code">ET_TAXABLE_PURCHASE_VAT_RATED_0</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_purch_vt_ratd_0_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Purchase VAT Rated 0%</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_purch_vt_ratd_15" model="account.report.line">
                        <field name="name">Taxable Purchase VAT Rated 15%</field>
                        <field name="code">ET_TAXABLE_PURCHASE_VAT_RATED_15</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_purch_vt_ratd_15_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Purchase VAT Rated 15%</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="account_tax_report_purch_withholding" model="account.report.line">
                <field name="name">Taxable Purchases - Witholding</field>
                <field name="aggregation_formula">ET_TAXABLE_ET_2_WITHHOLDING_ON_PURCHASES.balance + ET_TAXABLE_ET_35_WITHHOLDING_ON_PURCHASES.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_purch_withholding_2" model="account.report.line">
                        <field name="name">Taxable 2% Withholding on Purchases</field>
                        <field name="code">ET_TAXABLE_ET_2_WITHHOLDING_ON_PURCHASES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_purch_withholding_2_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable 2% Withholding on Purchases</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_purch_withholding_35" model="account.report.line">
                        <field name="name">Taxable 35% Withholding on Purchases</field>
                        <field name="code">ET_TAXABLE_ET_35_WITHHOLDING_ON_PURCHASES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_purch_withholding_35_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable 35% Withholding on Purchases</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="account_tax_report_sale_vat" model="account.report.line">
                <field name="name">Taxable Sales - VAT</field>
                <field name="aggregation_formula">ET_TAXABLE_SALES_VAT_OUT_OF_SCOPE_SALES.balance + ET_TAXABLE_SALES_VAT_EXEMPT.balance + ET_TAXABLE_SALES_VAT_RATED_0.balance + ET_TAXABLE_ET_SALES_VAT_RATED_15.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_sale_vat_out_scope" model="account.report.line">
                        <field name="name">Taxable Sales VAT Out of Scope (Sales)</field>
                        <field name="code">ET_TAXABLE_SALES_VAT_OUT_OF_SCOPE_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_vat_out_scope_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Sales VAT Out of Scope (Sales)</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_sale_vat_exmpt" model="account.report.line">
                        <field name="name">Taxable Sales VAT Exempt</field>
                        <field name="code">ET_TAXABLE_SALES_VAT_EXEMPT</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_vat_exmpt_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Sales VAT Exempt</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_sale_vat_rated_0" model="account.report.line">
                        <field name="name">Taxable Sales VAT Rated 0%</field>
                        <field name="code">ET_TAXABLE_SALES_VAT_RATED_0</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_vat_rated_0_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Sales VAT Rated 0%</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_sale_vat_rated_15" model="account.report.line">
                        <field name="name">Taxable Sales VAT Rated 15%</field>
                        <field name="code">ET_TAXABLE_ET_SALES_VAT_RATED_15</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_vat_rated_15_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable Sales VAT Rated 15%</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="account_tax_report_sale_withholding" model="account.report.line">
                <field name="name">Taxable Sales - Withholding</field>
                <field name="aggregation_formula">ET_TAXABLE_2_WITHHOLDING_ON_SALES.balance + ET_TAXABLE_35_WITHHOLDING_ON_SALES.balance + ET_TAXABLE_VAT_WITHHOLDING_ON_SALES.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_sale_withholding_2" model="account.report.line">
                        <field name="name">Taxable 2% Withholding on Sales</field>
                        <field name="code">ET_TAXABLE_2_WITHHOLDING_ON_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_withholding_2_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable 2% Withholding on Sales</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_sale_withholding_35" model="account.report.line">
                        <field name="name">Taxable 35% Withholding on Sales</field>
                        <field name="code">ET_TAXABLE_35_WITHHOLDING_ON_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_withholding_35_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable 35% Withholding on Sales</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_sale_vat_withholding" model="account.report.line">
                        <field name="name">Taxable VAT Withholding on Sales</field>
                        <field name="code">ET_TAXABLE_VAT_WITHHOLDING_ON_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_sale_vat_withholding_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">Taxable VAT Withholding on Sales</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="account_tax_report_net_vat" model="account.report.line">
                <field name="name">Net VAT to be Paid/Reclaimed</field>
                <field name="aggregation_formula">ET_PURCHASE_VAT.balance + ET_SALES_VAT.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_purch_vat" model="account.report.line">
                        <field name="name">Purchase VAT</field>
                        <field name="code">ET_PURCHASE_VAT</field>
                        <field name="aggregation_formula">ET_PURCHASE_VAT_RATED_15.balance</field>
                        <field name="children_ids">
                            <record id="account_tax_report_purch_vat_rated_15" model="account.report.line">
                                <field name="name">Purchase VAT Rated 15%</field>
                                <field name="code">ET_PURCHASE_VAT_RATED_15</field>
                                <field name="expression_ids">
                                    <record id="account_tax_report_purch_vat_rated_15_tag" model="account.report.expression">
                                        <field name="label">balance</field>
                                        <field name="engine">tax_tags</field>
                                        <field name="formula">Purchase VAT Rated 15%</field>
                                    </record>
                                </field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_net_sale_vat" model="account.report.line">
                        <field name="name">Sales VAT</field>
                        <field name="code">ET_SALES_VAT</field>
                        <field name="aggregation_formula">ET_SALES_VAT_RATED_15.balance</field>
                        <field name="children_ids">
                            <record id="account_tax_report_net_sale_vat_15" model="account.report.line">
                                <field name="name">Sales VAT Rated 15%</field>
                                <field name="code">ET_SALES_VAT_RATED_15</field>
                                <field name="expression_ids">
                                    <record id="account_tax_report_net_sale_vat_15_tag" model="account.report.expression">
                                        <field name="label">balance</field>
                                        <field name="engine">tax_tags</field>
                                        <field name="formula">Sales VAT Rated 15%</field>
                                    </record>
                                </field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="account_tax_report_net_purch_witholding" model="account.report.line">
                <field name="name">Withholding on Purchases</field>
                <field name="aggregation_formula">ET_2_WITHHOLDING_ON_PURCHASES.balance + ET_35_WITHHOLDING_ON_PURCHASES.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_net_purch_witholding_2" model="account.report.line">
                        <field name="name">2% Withholding on Purchases</field>
                        <field name="code">ET_2_WITHHOLDING_ON_PURCHASES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_net_purch_witholding_2_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">2% Withholding on Purchases</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_net_purch_witholding_35" model="account.report.line">
                        <field name="name">35% Withholding on Purchases</field>
                        <field name="code">ET_35_WITHHOLDING_ON_PURCHASES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_net_purch_witholding_35_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">35% Withholding on Purchases</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
            <record id="account_tax_report_net_sale_witholding" model="account.report.line">
                <field name="name">Withholding on Sales</field>
                <field name="aggregation_formula">ET_2_WITHHELD_ON_SALES.balance + ET_35_WITHHELD_ON_SALES.balance + ET_VAT_WITHHELD_ON_SALES.balance</field>
                <field name="hierarchy_level">0</field>
                <field name="children_ids">
                    <record id="account_tax_report_net_sale_witheld_2" model="account.report.line">
                        <field name="name">2% Withheld on Sales</field>
                        <field name="code">ET_2_WITHHELD_ON_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_net_sale_witheld_2_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">2% Withheld on Sales</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_net_sale_witheld_35" model="account.report.line">
                        <field name="name">35% Withheld on Sales</field>
                        <field name="code">ET_35_WITHHELD_ON_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_net_sale_witheld_35_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">35% Withheld on Sales</field>
                            </record>
                        </field>
                    </record>
                    <record id="account_tax_report_net_sale_vat_witheld" model="account.report.line">
                        <field name="name">VAT Withheld on Sales</field>
                        <field name="code">ET_VAT_WITHHELD_ON_SALES</field>
                        <field name="expression_ids">
                            <record id="account_tax_report_net_sale_vat_witheld_tag" model="account.report.expression">
                                <field name="label">balance</field>
                                <field name="engine">tax_tags</field>
                                <field name="formula">VAT Withheld on Sales</field>
                            </record>
                        </field>
                    </record>
                </field>
            </record>
        </field>
    </record>
</odoo>
