Skip to content
Permalink
Browse files

make it adaptable to new tax configuration

  • Loading branch information...
rgo-odoo committed Apr 2, 2019
1 parent fcf6590 commit f8ffcbefaf487d9c16e54576a71bbb7c55fd31b5
Showing with 249 additions and 21 deletions.
  1. +167 −17 addons/l10n_ae/data/account_tax_template_data.xml
  2. +82 −4 addons/l10n_ae/data/fiscal_templates_data.xml
@@ -1,7 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="tag_ae_01" model="account.account.tag">
<field name="name">Output VAT 5%</field>
<record id="tag_ae_01_dubai" model="account.account.tag">
<field name="name">Output VAT 5% (Dubai)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_01_abu_dhabi" model="account.account.tag">
<field name="name">Output VAT 5% (Abu Dhabi)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_01_sharjah" model="account.account.tag">
<field name="name">Output VAT 5% (Sharjah)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_01_ajman" model="account.account.tag">
<field name="name">Output VAT 5% (Ajman)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_01_umm_al_quwain" model="account.account.tag">
<field name="name">Output VAT 5% (Umm Al Quwain)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_01_ras_al_khaima" model="account.account.tag">
<field name="name">Output VAT 5% (Ras Al-Khaima)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_01_fujairah" model="account.account.tag">
<field name="name">Output VAT 5% (Fujairah)</field>
<field name="applicability">taxes</field>
</record>
<record id="tag_ae_02" model="account.account.tag">
@@ -46,6 +70,90 @@
</record>

<!-- account.tax.template -->
<record id="uae_sale_tax_5_dubai" model="account.tax.template">
<field name="name">TVA 5% (Dubai)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_dubai')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5_abu_dhabi" model="account.tax.template">
<field name="name">TVA 5% (Abu Dhabi)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_abu_dhabi')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5_sharjah" model="account.tax.template">
<field name="name">TVA 5% (Sharjah)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_sharjah')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5_ajman" model="account.tax.template">
<field name="name">TVA 5% (Ajman)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_ajman')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5_umm_al_quwain" model="account.tax.template">
<field name="name">TVA 5% (Umm Al Quwain)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_umm_al_quwain')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5_ras_al_khaima" model="account.tax.template">
<field name="name">TVA 5% (Ras Al-Khaima)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_ras_al_khaima')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5_fujairah" model="account.tax.template">
<field name="name">TVA 5% (Fujairah)</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01_fujairah')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_exempted" model="account.tax.template">
<field name="name">Exempted Tax</field>
<field name="type_tax_use">sale</field>
@@ -70,18 +178,6 @@
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_05')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_5" model="account.tax.template">
<field name="name">TVA 5%</field>
<field name="type_tax_use">sale</field>
<field name="amount">5</field>
<field name="amount_type">percent</field>
<field name="description">TVA 5%</field>
<field name="account_id" ref="uae_account_3785"/>
<field name="refund_account_id" ref="uae_account_3785"/>
<field name="tax_group_id" ref="ae_tax_group_5"/>
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_01')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_export_tax" model="account.tax.template">
<field name="name">Export Tax 0%</field>
<field name="type_tax_use">sale</field>
@@ -101,13 +197,67 @@
<field name="tag_ids" eval="[(6,0,[ref('tag_ae_09')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge" model="account.tax.template">
<field name="name">Reverse Charge Provision</field>
<record id="uae_sale_tax_reverse_charge_dubai" model="account.tax.template">
<field name="name">Reverse Charge Provision (Dubai)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_dubai')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge_abu_dhabi" model="account.tax.template">
<field name="name">Reverse Charge Provision (Abi Dhabi)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_abu_dhabi')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge_sharjah" model="account.tax.template">
<field name="name">Reverse Charge Provision (Sharjah)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_sharjah')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge_ajman" model="account.tax.template">
<field name="name">Reverse Charge Provision (Ajman)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_ajman')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge_umm_al_quwain" model="account.tax.template">
<field name="name">Reverse Charge Provision (Umm Al Quwain)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_umm_al_quwain')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge_ras_al_khaima" model="account.tax.template">
<field name="name">Reverse Charge Provision (Ras Al-Khaima)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_ras_al_khaima')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_reverse_charge_fujairah" model="account.tax.template">
<field name="name">Reverse Charge Provision (Fujairah)</field>
<field name="type_tax_use">sale</field>
<field name="amount">0.0</field>
<field name="amount_type">group</field>
<field name="description">Supplies subject to reverse charge provisions</field>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5')])]"/>
<field name="children_tax_ids" eval="[(6, 0, [ref('uae_sale_tax_reverse_charge_5'), ref('uae_sale_tax_5_fujairah')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="uae_sale_tax_tourist_refund" model="account.tax.template">
@@ -1,20 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_fiscal_position_uae_countries" model="account.fiscal.position.template">
<field name="name">UAE</field>
<record id="account_fiscal_position_dubai" model="account.fiscal.position.template">
<field name="name">Dubai</field>
<field name="auto_apply" eval="True"/>
<field name="sequence" eval="1"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="[(6,0,[ref('base.state_ae_du')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>

<record id="account_fiscal_position_abu_dhabi" model="account.fiscal.position.template">
<field name="name">Abu Dhabi</field>
<field name="auto_apply" eval="True"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="[(6,0,[ref('base.state_ae_az')])]"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="account_fiscal_position_abu_dhabi_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_5_abu_dhabi"/>
<field name="position_id" ref="account_fiscal_position_abu_dhabi"/>
</record>

<record id="account_fiscal_position_sharjah" model="account.fiscal.position.template">
<field name="name">Sharjah</field>
<field name="auto_apply" eval="True"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="(6,0,[ref('base.state_ae_sh')])"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="account_fiscal_position_sharjah_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_5_sharjah"/>
<field name="position_id" ref="account_fiscal_position_sharjah"/>
</record>

<record id="account_fiscal_position_ajman" model="account.fiscal.position.template">
<field name="name">Ajman</field>
<field name="auto_apply" eval="True"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="(6,0,[ref('base.state_ae_aj')])"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="account_fiscal_position_ajman_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_5_ajman"/>
<field name="position_id" ref="account_fiscal_position_ajman"/>
</record>

<record id="account_fiscal_position_umm_al_quwain" model="account.fiscal.position.template">
<field name="name">Umm Al Quwain</field>
<field name="auto_apply" eval="True"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="(6,0,[ref('base.state_ae_uq')])"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="account_fiscal_position_umm_al_quwain_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_5_umm_al_quwain"/>
<field name="position_id" ref="account_fiscal_position_umm_al_quwain"/>
</record>

<record id="account_fiscal_position_ras_al_khaima" model="account.fiscal.position.template">
<field name="name">Ras Al-Khaima</field>
<field name="auto_apply" eval="True"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="(6,0,[ref('base.state_ae_rk')])"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="account_fiscal_position_ras_al_khaima_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_5_ras_al_khaima"/>
<field name="position_id" ref="account_fiscal_position_ras_al_khaima"/>
</record>

<record id="account_fiscal_position_fujairah" model="account.fiscal.position.template">
<field name="name">Fujairah</field>
<field name="auto_apply" eval="True"/>
<field name="country_id" ref="base.ae"/>
<field name="state_ids" eval="(6,0,[ref('base.state_ae_fu')])"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="account_fiscal_position_fujairah_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_5_fujairah"/>
<field name="position_id" ref="account_fiscal_position_fujairah"/>
</record>

<record id="account_fiscal_position_non_uae_countries" model="account.fiscal.position.template">
<field name="name">Non-UAE</field>
<field name="auto_apply" eval="True"/>
<field name="chart_template_id" ref="uae_chart_template_standard"/>
</record>
<record id="acccount_fiscal_position_tax_non_uae_01" model="account.fiscal.position.tax.template">
<field name="tax_src_id" ref="uae_sale_tax_5"/>
<field name="tax_src_id" ref="uae_sale_tax_5_dubai"/>
<field name="tax_dest_id" ref="uae_sale_tax_0"/>
<field name="position_id" ref="account_fiscal_position_non_uae_countries"/>
</record>

0 comments on commit f8ffcbe

Please sign in to comment.
You can’t perform that action at this time.