Skip to content

Commit

Permalink
[FIX] l10n_es_igic: Arreglos pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mfargnoli committed Jul 26, 2024
1 parent 09e08a5 commit fbc8828
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 85 deletions.
7 changes: 4 additions & 3 deletions l10n_es_igic/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
========================================
IGIC (Impuesto General Indirecto Canario
========================================
=========================================
IGIC (Impuesto General Indirecto Canario)
=========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expand Down Expand Up @@ -68,6 +68,7 @@ Authors
* Atlantux Consultores - Enrique Zanardi
* Sistemas de Datos
* Comunitea
* Moisés Fargnoli

Contributors
------------
Expand Down
4 changes: 2 additions & 2 deletions l10n_es_igic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# License AGPL-3 - See See https://www.gnu.org/licenses/agpl-3.0.html

{
"name": "IGIC (Impuesto General Indirecto Canario",
"name": "IGIC (Impuesto General Indirecto Canario)",
"version": "17.0.1.0.0",
"author": "David Diz Martínez,"
"Atlantux Consultores - Enrique Zanardi,"
"Sistemas de Datos,"
"Comunitea,"
"Moisés Fargnoli"
"Moisés Fargnoli,"
"Odoo Community Association (OCA)",
"category": "Accounting/Localizations/Account Charts",
"website": "https://github.com/OCA/l10n-spain",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,3 @@
"account_full_canary_992","Recuperación de ajustes valorativos negativos previos, empresas asociadas","Recuperación de ajustes valorativos negativos previos, empresas asociadas","Recuperación de ajustes valorativos negativos previos, empresas asociadas",992,"income","False"
"account_full_canary_993","Transferencia por deterioro de ajustes valorativos negativos previos, empresas del grupo","Transferencia por deterioro de ajustes valorativos negativos previos, empresas del grupo","Transferencia por deterioro de ajustes valorativos negativos previos, empresas del grupo",993,"income","False"
"account_full_canary_994","Transferencia por deterioro de ajustes valorativos negativos previos, empresas asociadas","Transferencia por deterioro de ajustes valorativos negativos previos, empresas asociadas","Transferencia por deterioro de ajustes valorativos negativos previos, empresas asociadas",994,"income","False"

2 changes: 1 addition & 1 deletion l10n_es_igic/data/template/account.tax-es_assoc_canary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,4 @@
"account_tax_template_p_igic20_sc","","IGIC 20% (Servicios)","IGIC 20%","purchase","20% S INC Can","20% IGIC soportado (servicios corrientes)","20% IGIC suportat (serveis corrents)","20.0","percent","tax_group_igic_20","","sujeto","","","service","","base","","invoice","","","",""
"","","","","","","","","","","","","","","","","","tax","","invoice","account_common_canary_4727","","",""
"","","","","","","","","","","","","","","","","","base","","refund","","","",""
"","","","","","","","","","","","","","","","","","tax","","refund","account_common_canary_4727","","",""
"","","","","","","","","","","","","","","","","","tax","","refund","account_common_canary_4727","","",""
2 changes: 1 addition & 1 deletion l10n_es_igic/data/template/account.tax-es_full_canary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,4 @@
"account_tax_template_p_igic20_sc","","IGIC 20% (Servicios)","IGIC 20%","purchase","20% S INC Can","20% IGIC soportado (servicios corrientes)","20% IGIC suportat (serveis corrents)","20.0","percent","tax_group_igic_20","","sujeto","","","service","","base","","invoice","","","",""
"","","","","","","","","","","","","","","","","","tax","","invoice","account_common_canary_4727","","",""
"","","","","","","","","","","","","","","","","","base","","refund","","","",""
"","","","","","","","","","","","","","","","","","tax","","refund","account_common_canary_4727","","",""
"","","","","","","","","","","","","","","","","","tax","","refund","account_common_canary_4727","","",""
2 changes: 1 addition & 1 deletion l10n_es_igic/data/template/account.tax-es_pymes_canary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,4 @@
"account_tax_template_p_igic20_sc","","IGIC 20% (Servicios)","IGIC 20%","purchase","20% S INC Can","20% IGIC soportado (servicios corrientes)","20% IGIC suportat (serveis corrents)","20.0","percent","tax_group_igic_20","","sujeto","","","service","","base","","invoice","","","",""
"","","","","","","","","","","","","","","","","","tax","","invoice","account_common_canary_4727","","",""
"","","","","","","","","","","","","","","","","","base","","refund","","","",""
"","","","","","","","","","","","","","","","","","tax","","refund","account_common_canary_4727","","",""
"","","","","","","","","","","","","","","","","","tax","","refund","account_common_canary_4727","","",""
5 changes: 3 additions & 2 deletions l10n_es_igic/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from . import template_es_assoc_canary

from . import template_es_pymes_canary
from . import template_es_full_canary
#from . import template_es_coop_full_canary
#from . import template_es_coop_pymes_canary
# from . import template_es_coop_full_canary
# from . import template_es_coop_pymes_canary
31 changes: 16 additions & 15 deletions l10n_es_igic/models/template_es_assoc_canary.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
from odoo import models, _
from odoo import _, models

from odoo.addons.account.models.chart_template import template


class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
_inherit = "account.chart.template"

@template('es_assoc_canary')
def _get_es_pymes_template_data(self):
@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',
"name": _("Entidades sin ánimo de lucro (2008) - Islas Canarias"),
"parent": "es_common",
}

@template('es_assoc_canary', 'res.company')
def _get_es_pymes_res_company(self):
@template("es_assoc_canary", "res.company")
def _get_es_assoc_canary_res_company(self):
return {

Check warning on line 18 in l10n_es_igic/models/template_es_assoc_canary.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic/models/template_es_assoc_canary.py#L18

Added line #L18 was not covered by tests
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_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",
},
}
}
29 changes: 15 additions & 14 deletions l10n_es_igic/models/template_es_coop_full_canary.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
from odoo import models, _
from odoo import _, models

from odoo.addons.account.models.chart_template import template


class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
_inherit = "account.chart.template"

@template('es_coop_full_canary')
def _get_es_pymes_template_data(self):
@template("es_coop_full_canary")
def _get_es_coop_full_canary_template_data(self):
return {
'name': _('Cooperativas - Completo (2008) - Islas Canarias'),
'parent': 'es_common',
"name": _("Cooperativas - Completo (2008) - Islas Canarias"),
"parent": "es_common",
}

@template('es_coop_full_canary', 'res.company')
def _get_es_pymes_res_company(self):
@template("es_coop_full_canary", "res.company")
def _get_es_coop_full_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_iva21b',
'account_purchase_tax_id': 'account_tax_template_p_iva21_bc',
"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",
},
}
31 changes: 16 additions & 15 deletions l10n_es_igic/models/template_es_coop_pymes_canary.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
from odoo import models, _
from odoo import _, models

from odoo.addons.account.models.chart_template import template


class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
_inherit = "account.chart.template"

@template('es_coop_pymes_canary')
def _get_es_pymes_template_data(self):
@template("es_coop_pymes_canary")
def _get_es_coop_pymes_canary_template_data(self):
return {
'name': _('Cooperativas - PyMEs (2008) - Islas Canarias'),
'parent': 'es_common',
"name": _("Cooperativas - PyMEs (2008) - Islas Canarias"),
"parent": "es_common",
}

@template('es_coop_pymes_canary', 'res.company')
def _get_es_pymes_res_company(self):
@template("es_coop_pymes_canary", "res.company")
def _get_es_coop_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_s_iva21b',
'account_purchase_tax_id': 'account_tax_template_p_iva21_bc',
"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",
},
}
}
29 changes: 15 additions & 14 deletions l10n_es_igic/models/template_es_full_canary.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
from odoo import models, _
from odoo import _, models

from odoo.addons.account.models.chart_template import template


class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
_inherit = "account.chart.template"

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

@template('es_full_canary', 'res.company')
def _get_es_pymes_res_company(self):
@template("es_full_canary", "res.company")
def _get_es_full_canary_res_company(self):
return {

Check warning on line 18 in l10n_es_igic/models/template_es_full_canary.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic/models/template_es_full_canary.py#L18

Added line #L18 was not covered by tests
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_iva21b',
'account_purchase_tax_id': 'account_tax_template_p_iva21_bc',
"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",
},
}
29 changes: 15 additions & 14 deletions l10n_es_igic/models/template_es_pymes_canary.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
from odoo import models, _
from odoo import _, models

from odoo.addons.account.models.chart_template import template


class AccountChartTemplate(models.AbstractModel):
_inherit = 'account.chart.template'
_inherit = "account.chart.template"

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

@template('es_pymes_canary', 'res.company')
def _get_es_pymes_res_company(self):
@template("es_pymes_canary", "res.company")
def _get_es_pymes_canary_res_company(self):
return {

Check warning on line 18 in l10n_es_igic/models/template_es_pymes_canary.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_igic/models/template_es_pymes_canary.py#L18

Added line #L18 was not covered by tests
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_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",
},
}
5 changes: 3 additions & 2 deletions l10n_es_igic/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>IGIC (Impuesto General Indirecto Canario</title>
<title>IGIC (Impuesto General Indirecto Canario)</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -361,7 +361,7 @@
</head>
<body>
<div class="document" id="igic-impuesto-general-indirecto-canario">
<h1 class="title">IGIC (Impuesto General Indirecto Canario</h1>
<h1 class="title">IGIC (Impuesto General Indirecto Canario)</h1>

<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
Expand Down Expand Up @@ -413,6 +413,7 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<li>Atlantux Consultores - Enrique Zanardi</li>
<li>Sistemas de Datos</li>
<li>Comunitea</li>
<li>Moisés Fargnoli</li>
</ul>
</div>
<div class="section" id="contributors">
Expand Down

0 comments on commit fbc8828

Please sign in to comment.