Skip to content

Commit

Permalink
[IMP] l10n_es: special taxes for agriculture, ranching and fishing
Browse files Browse the repository at this point in the history
Includes:

* Fiscal positions for REAGYP
* 10.5 % tax for ranching
* IRPF 2% sequence fix for correct applying after other taxes
  • Loading branch information
acysos authored and pedrobaeza committed May 19, 2018
1 parent f6837d2 commit 451f9c5
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
4 changes: 2 additions & 2 deletions l10n_es/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# © 2008-2010 Jordi Esteve - Zikzakmedia S.L.
# © 2011 Ignacio - Ibeas - Acysos
# © 2011-2018 Ignacio - Ibeas - Acysos
# © 2012-2013 Grupo Opentia
# © 2014 Pablo Cayuela - Aserti Global Solutions
# © 2014 Ángel Moya - Domatix
Expand All @@ -12,7 +12,7 @@

{
"name": "Planes de cuentas españoles (según PGCE 2008)",
"version": "10.0.1.2.0",
"version": "10.0.1.3.0",
"author": "Spanish Localization Team, "
"Odoo Community Association (OCA)",
"website": 'https://github.com/OCA/l10n-spain',
Expand Down
32 changes: 32 additions & 0 deletions l10n_es/data/fiscal_positions_common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@
<field name="chart_template_id" ref="account_chart_template_common"/>
</record>

<record id="fp_reagyp_a" model="account.fiscal.position.template">
<field name="name">REAGYP - Agricultura</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
</record>

<record id="fp_reagyp_gp" model="account.fiscal.position.template">
<field name="name">REAGYP - Ganadería y pesca</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
</record>

<!-- ************************************************************* -->
<!-- Fiscal Position Tax Templates -->
<!-- ************************************************************* -->
Expand Down Expand Up @@ -2889,6 +2899,28 @@
<field name="tax_dest_id" ref="account_tax_template_s_iva0_isp"/>
</record>

<!-- Régimen especial de Agricultura, Ganaderia y Pesca -->
<record id="fptt_reagyp_a_4b_1" model="account.fiscal.position.tax.template">
<field name="position_id" ref="fp_reagyp_a"/>
<field name="tax_src_id" ref="l10n_es.account_tax_template_p_iva4_bc"/>
<field name="tax_dest_id" ref="l10n_es.account_tax_template_p_iva12_agr"/>
</record>
<record id="fptt_reagyp_a_4b_2" model="account.fiscal.position.tax.template">
<field name="position_id" ref="fp_reagyp_a"/>
<field name="tax_src_id" ref="l10n_es.account_tax_template_p_iva4_bc"/>
<field name="tax_dest_id" ref="l10n_es.account_tax_template_p_irpf2"/>
</record>
<record id="fptt_reagyp_gp_4b_1" model="account.fiscal.position.tax.template">
<field name="position_id" ref="fp_reagyp_gp"/>
<field name="tax_src_id" ref="l10n_es.account_tax_template_p_iva4_bc"/>
<field name="tax_dest_id" ref="account_tax_template_p_iva105_gan"/>
</record>
<record id="fptt_reagyp_gp_4b_2" model="account.fiscal.position.tax.template">
<field name="position_id" ref="fp_reagyp_gp"/>
<field name="tax_src_id" ref="l10n_es.account_tax_template_p_iva4_bc"/>
<field name="tax_dest_id" ref="l10n_es.account_tax_template_p_irpf2"/>
</record>

<!-- ************************************************************* -->
<!-- Fiscal Position Account Templates -->
<!-- ************************************************************* -->
Expand Down
14 changes: 13 additions & 1 deletion l10n_es/data/taxes_common.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2009-2011 Jordi Esteve - Zikzakmedia
© 2011 Ignacio Ibeas - Acysos
© 2011-2018 Ignacio Ibeas - Acysos
© 2014 Pablo Cayuela - Aserti Global Solutions
© 2014 Ángel Moya - Domatix
© 2015 Carlos Liébana - Factor Libre
Expand Down Expand Up @@ -794,6 +794,17 @@
<field name="amount_type">percent</field>
<field name="include_base_amount" eval="1"/>
</record>
<record id="account_tax_template_p_iva105_gan" model="account.tax.template">
<field name="description">P_IVA105_GAN</field>
<field name="type_tax_use">purchase</field>
<field name="account_id" ref="pgc_472_child"/>
<field name="name">10,5% IVA Soportado régimen ganadero o pesca</field>
<field name="refund_account_id" ref="pgc_472_child"/>
<field name="chart_template_id" ref="account_chart_template_common"/>
<field name="amount" eval="10.5"/>
<field name="amount_type">percent</field>
<field name="include_base_amount" eval="1"/>
</record>
<record id="account_tax_template_s_iva0_e" model="account.tax.template">
<field name="description">S_IVA0_E</field>
<field name="type_tax_use">sale</field>
Expand Down Expand Up @@ -1042,6 +1053,7 @@
<field name="refund_account_id" ref="pgc_4751_child"/>
<field name="chart_template_id" ref="account_chart_template_common"/>
<field name="amount" eval="-2"/>
<field name="sequence" eval="2"/>
<field name="amount_type">percent</field>
</record>
<record id="account_tax_template_s_iva0_isp" model="account.tax.template">
Expand Down

0 comments on commit 451f9c5

Please sign in to comment.