-
-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_es_igic: Arreglos pre-commit
- Loading branch information
Showing
13 changed files
with
92 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
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", | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
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", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
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", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters