Skip to content

Commit

Permalink
Merge PR #3866 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 23, 2024
2 parents 078fe88 + 48d25d1 commit 249c2e6
Show file tree
Hide file tree
Showing 17 changed files with 827 additions and 3,613 deletions.
6 changes: 3 additions & 3 deletions l10n_es_igic/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ Authors
Contributors
------------

- Rodrigo Colombo <[email protected]> <[email protected]>
- Hector Ravelo <[email protected]>
- Omar Castiñeira Saavedra <[email protected]>
- Rodrigo Colombo <[email protected]> <[email protected]>
- Hector Ravelo <[email protected]>
- Omar Castiñeira Saavedra <[email protected]>

Maintainers
-----------
Expand Down
1 change: 1 addition & 0 deletions l10n_es_igic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
2 changes: 2 additions & 0 deletions l10n_es_igic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
# Copyright 2019-2023 Comunitea Servicios Tecnológicos (https://comunitea.com).
# Copyright 2019 Héctor J. Ravelo (http://sdatos.com)
# Copyright 2024 Moisés Fargnoli (https://www.linkedin.com/in/moisesfargnoli/)
# Copyright 2024 Binhex - Christian Ramos (http://binhex.es)
# License AGPL-3 - See See https://www.gnu.org/licenses/agpl-3.0.html

{
"name": "IGIC (Impuesto General Indirecto Canario)",
"version": "17.0.1.1.0",
"countries": ["es"],
"author": "David Diz Martínez,"
"Atlantux Consultores - Enrique Zanardi,"
"Sistemas de Datos,"
Expand Down
88 changes: 0 additions & 88 deletions l10n_es_igic/data/template/account.account-es_assec.csv

This file was deleted.

194 changes: 80 additions & 114 deletions l10n_es_igic/data/template/account.account-es_assoc_canary.csv

Large diffs are not rendered by default.

589 changes: 0 additions & 589 deletions l10n_es_igic/data/template/account.account-es_common.csv

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"id","name","name@es","code","account_type","reconcile"
"account_common_canary_47071","Public Treasury, debtor for IGIC transitory circulating regime","Hacienda Pública, deudora por IGIC régimen transitorio circulante","47071","asset_current","False"
"account_common_canary_47072","Public Treasury, debtor for IGIC transitional investment regime","Hacienda Pública, deudora por IGIC régimen transitorio inversión","47072","asset_current","False"
"account_common_canary_4727","Public estate. IGIC Supported","Hacienda Pública. IGIC Soportado","4727","asset_current","False"
"account_common_canary_4777","Public estate. Passed IGIC","Hacienda Pública. IGIC Repercutido","4777","liability_current","False"
"account_common_canary_6343","Negative adjustments in IGIC of working capital","Ajustes negativos en IGIC de circulante","6343","expense","False"
"account_common_canary_6344","Negative adjustments in investment IGIC","Ajustes negativos en IGIC de inversión","6344","expense","False"
"account_common_canary_6393","Positive adjustments in IGIC of working capital","Ajustes positivos en IGIC de circulante","6393","expense","False"
"account_common_canary_6394","Positive adjustments in investment IGIC","Ajustes positivos en IGIC de inversión","6394","expense","False"
307 changes: 139 additions & 168 deletions l10n_es_igic/data/template/account.account-es_full_canary.csv

Large diffs are not rendered by default.

105 changes: 39 additions & 66 deletions l10n_es_igic/data/template/account.account-es_pymes_canary.csv

Large diffs are not rendered by default.

1,074 changes: 219 additions & 855 deletions l10n_es_igic/data/template/account.fiscal.position-es_common.csv

Large diffs are not rendered by default.

355 changes: 0 additions & 355 deletions l10n_es_igic/data/template/account.tax-es_assoc_canary.csv

This file was deleted.

599 changes: 0 additions & 599 deletions l10n_es_igic/data/template/account.tax-es_common.csv

This file was deleted.

259 changes: 259 additions & 0 deletions l10n_es_igic/data/template/account.tax-es_common_canary.csv

Large diffs are not rendered by default.

355 changes: 0 additions & 355 deletions l10n_es_igic/data/template/account.tax-es_full_canary.csv

This file was deleted.

355 changes: 0 additions & 355 deletions l10n_es_igic/data/template/account.tax-es_pymes_canary.csv

This file was deleted.

59 changes: 17 additions & 42 deletions l10n_es_igic/data/template/account.tax.group-es_common.csv
Original file line number Diff line number Diff line change
@@ -1,42 +1,17 @@
"id","name","name@es","name@ca","country_id","tax_payable_account_id","tax_receivable_account_id"
"tax_group_igic_0","IGIC 0%","IGIC 0%","IGIC 0%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_3","IGIC 3%","IGIC 3%","IGIC 3%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_7","IGIC 7%","IGIC 7%","IGIC 7%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_95","IGIC 9,5%","IGIC 9,5%","IGIC 9,5%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_15","IGIC 15%","IGIC 15%","IGIC 15%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_20","IGIC 20%","IGIC 20%","IGIC 20%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_ex","IGIC EXENTO","IGIC EXENTO","IGIC EXENTO","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_re_0","IGIC Recargo de Equivalencia 0%","IGIC Recargo de Equivalencia 0%","IGIC Recargo de Equivalencia 0%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_re_03","IGIC Recargo de Equivalencia 0,3%","IGIC Recargo de Equivalencia 0,3%","IGIC Recargo de Equivalencia 0,3%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_re_07","IGIC Recargo de Equivalencia 0,7%","IGIC Recargo de Equivalencia 0,7%","IGIC Recargo de Equivalencia 0,7%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_re_095","IGIC Recargo de Equivalencia 0,95%","IGIC Recargo de Equivalencia 0,95%","IGIC Recargo de Equivalencia 0,95%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_re_15","IGIC Recargo de Equivalencia 1,5%","IGIC Recargo de Equivalencia 1,5%","IGIC Recargo de Equivalencia 1,5%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_re_20","IGIC Recargo de Equivalencia 2%","IGIC Recargo de Equivalencia 2%","IGIC Recargo de Equivalencia 2%","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_igic_cmino","IGIC Comercio Minorista","IGIC Comercio Minorista","IGIC Comercio Minorista","base.es","account_common_canary_4757","account_common_canary_4707"
"tax_group_iva_0","VAT 0%","IVA 0%","IVA 0%","base.es","account_common_4750","account_common_4700"
"tax_group_recargo_0","VAT equivalence surcharge 0%","Recargo de Equivalencia 0%","Recàrrec d'equivalència 0%","base.es","account_common_4750","account_common_4700"
"tax_group_recargo_0-5","VAT equivalence surcharge 0.5%","Recargo de Equivalencia 0,5%","Recàrrec d'equivalència 0,5%","base.es","account_common_4750","account_common_4700"
"tax_group_recargo_0-62","VAT equivalence surcharge 0.62%","Recargo de Equivalencia 0,62%","Recàrrec d'equivalència 0,62%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_1","Withholding 1%","Retenciones 1%","Retencions 1%","base.es","account_common_4750","account_common_4700"
"tax_group_recargo_1-4","VAT equivalence surcharge 1.4%","Recargo de Equivalencia 1,4%","Recàrrec d'equivalència 1,4%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_2","Withholding 2%","Retenciones 2%","Retencions 2%","base.es","account_common_4750","account_common_4700"
"tax_group_iva_4","VAT 4%","IVA 4%","IVA 4%","base.es","account_common_4750","account_common_4700"
"tax_group_iva_5","VAT 5%","IVA 5%","IVA 5%","base.es","account_common_4750","account_common_4700"
"tax_group_recargo_5-2","VAT equivalence surcharge 5.2%","Recargo de Equivalencia 5,2%","Recàrrec d'equivalència 5,2%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_7","Withholding 7%","Retenciones 7%","Retencions 7%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_9","Withholding 9%","Retenciones 9%","Retencions 9%","base.es","account_common_4750","account_common_4700"
"tax_group_iva_10","VAT 10%","IVA 10%","IVA 10%","base.es","account_common_4750","account_common_4700"
"tax_group_iva_12","VAT 12%","IVA 12%","IVA 12%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_15","Withholding 15%","Retenciones 15%","Retencions 15%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_18","Withholding 18%","Retenciones 18%","Retencions 18%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_19","Withholding 19%","Retenciones 19%","Retencions 19%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_19-5","Withholding 19.5%","Retenciones 19,5%","Retencions 19,5%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_20","Withholding 20%","Retenciones 20%","Retencions 20%","base.es","account_common_4750","account_common_4700"
"tax_group_iva_21","VAT 21%","IVA 21%","IVA 21%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_21","Withholding 21%","Retenciones 21%","Retencions 21%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_24","Withholding 24%","Retenciones 24%","Retencions 24%","base.es","account_common_4750","account_common_4700"
"tax_group_retenciones_35","Withholding 35%","Retenciones 35%","Retencions 35%","base.es","account_common_4750","account_common_4700"
"tax_group_iva_10-5","VAT 10,5% REAGYP","IVA 10,5% REAGYP","IVA 10,5% REAGYP","base.es","account_common_4750","account_common_4700"
"tax_group_iva_nd","VAT exempt","IVA no deducible","IVA no deduible","base.es","account_common_4750","account_common_4700"
"tax_group_no_base","Subtract Base Amount","Resta Base","Resta Base","base.es","account_common_4750","account_common_4700"
"tax_group_dua_exempt","Exempt DUA","DUA exento","DUA exempt","base.es","account_common_4750","account_common_4700"
"id","name","name@es"
"tax_group_igic_0","IGIC 0%","IGIC 0%"
"tax_group_igic_3","IGIC 3%","IGIC 3%"
"tax_group_igic_5","IGIC 5%","IGIC 5%"
"tax_group_igic_7","IGIC 7%","IGIC 7%"
"tax_group_igic_95","IGIC 9.5%","IGIC 9,5%"
"tax_group_igic_15","IGIC 15%","IGIC 15%"
"tax_group_igic_20","IGIC 20%","IGIC 20%"
"tax_group_igic_ex","EXEMPT IGIC","IGIC EXENTO"
"tax_group_igic_re_0","IGIC Equivalence Surcharge 0%","IGIC Recargo de Equivalencia 0%"
"tax_group_igic_re_03","IGIC Equivalence Surcharge 0.3%","IGIC Recargo de Equivalencia 0,3%"
"tax_group_igic_re_05","IGIC Equivalence Surcharge 0.5%","IGIC Recargo de Equivalencia 0,5%"
"tax_group_igic_re_07","IGIC Equivalence Surcharge 0.7%","IGIC Recargo de Equivalencia 0,7%"
"tax_group_igic_re_095","IGIC Equivalence Surcharge 0.95%","IGIC Recargo de Equivalencia 0,95%"
"tax_group_igic_re_15","IGIC Equivalence Surcharge 1.5%","IGIC Recargo de Equivalencia 1,5%"
"tax_group_igic_re_20","IGIC Equivalence Surcharge 2%","IGIC Recargo de Equivalencia 2%"
"tax_group_igic_cmino","IGIC Retail Trade","IGIC Comercio Minorista"
83 changes: 59 additions & 24 deletions l10n_es_igic/models/template_es_canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,58 @@
class AccountChartTemplate(models.AbstractModel):
_inherit = "account.chart.template"

##############
# Pymes Canary
##############

@template("es_pymes_canary")
def _get_es_pymes_canary_template_data(self):
@template("es_common_canary")
def _get_es_common_canary_template_data(self):
return {
"name": _("PyMEs (2008) - Islas Canarias"),
"name": _("Común (2008) - Islas Canarias"),
"visible": 0,
"parent": "es_common",
}

@template("es_pymes_canary", "res.company")
def _get_es_pymes_canary_res_company(self):
@template("es_common_canary", "res.company")
def _get_es_common_canary_res_company(self):
return {
self.env.company.id: {
"account_fiscal_country_id": "base.es",
"bank_account_code_prefix": "572",
"cash_account_code_prefix": "570",
"transfer_account_code_prefix": "57299",
"account_sale_tax_id": "account_tax_template_s_igic7b",
"account_purchase_tax_id": "account_tax_template_p_igic7_bc",
"account_sale_tax_id": "account_tax_template_igic_r_7",
"account_purchase_tax_id": "account_tax_template_igic_sop_7",
},
}

#############
# Full Canary
#############
# The following block of code is needed to force the loading of the data from
# a different module. The current method of loading charts of accounts allows
# easy extension of the same chart, but makes it harder to use and extend.

@template("es_common", "account.tax")
def _get_es_common_force_account_tax(self):
tax_data = self._parse_csv("es_common", "account.tax", module="l10n_es")
self._deref_account_tags("es_full", tax_data)
return tax_data

@template("es_common", "account.tax.group")
def _get_es_common_force_account_tax_group(self):
return self._parse_csv("es_common", "account.tax.group", module="l10n_es")

@template("es_common", "account.group")
def _get_es_common_force_account_group(self):
return self._parse_csv("es_common", "account.group", module="l10n_es")

@template("es_common", "account.account")
def _get_es_common_force_account_account(self):
return self._parse_csv("es_common", "account.account", module="l10n_es")

@template("es_common", "account.fiscal.position")
def _get_es_common_force_account_fiscal_position(self):
return self._parse_csv("es_common", "account.fiscal.position", module="l10n_es")

@template("es_full_canary")
def _get_es_full_canary_template_data(self):
return {
"name": _("Completo (2008) - Islas Canarias"),
"parent": "es_common",
"parent": "es_common_canary",
}

@template("es_full_canary", "res.company")
Expand All @@ -49,20 +68,16 @@ def _get_es_full_canary_res_company(self):
"bank_account_code_prefix": "572",
"cash_account_code_prefix": "570",
"transfer_account_code_prefix": "57299",
"account_sale_tax_id": "account_tax_template_s_igic7b",
"account_purchase_tax_id": "account_tax_template_p_igic7_bc",
"account_sale_tax_id": "account_tax_template_igic_r_7",
"account_purchase_tax_id": "account_tax_template_igic_sop_7",
},
}

#######
# Assoc
#######

@template("es_assoc_canary")
def _get_es_assoc_canary_template_data(self):
return {
"name": _("Entidades sin ánimo de lucro (2008) - Islas Canarias"),
"parent": "es_common",
"parent": "es_common_canary",
}

@template("es_assoc_canary", "res.company")
Expand All @@ -73,7 +88,27 @@ def _get_es_assoc_canary_res_company(self):
"bank_account_code_prefix": "572",
"cash_account_code_prefix": "570",
"transfer_account_code_prefix": "57299",
"account_sale_tax_id": "account_tax_template_s_igic7b",
"account_purchase_tax_id": "account_tax_template_p_igic7_bc",
"account_sale_tax_id": "account_tax_template_igic_r_7",
"account_purchase_tax_id": "account_tax_template_igic_sop_7",
},
}

@template("es_pymes_canary")
def _get_es_pymes_canary_template_data(self):
return {
"name": _("PyMEs (2008) - Islas Canarias"),
"parent": "es_common_canary",
}

@template("es_pymes_canary", "res.company")
def _get_es_pymes_canary_res_company(self):
return {
self.env.company.id: {
"account_fiscal_country_id": "base.es",
"bank_account_code_prefix": "572",
"cash_account_code_prefix": "570",
"transfer_account_code_prefix": "57299",
"account_sale_tax_id": "account_tax_template_igic_r_7",
"account_purchase_tax_id": "account_tax_template_igic_sop_7",
},
}

0 comments on commit 249c2e6

Please sign in to comment.