From 9bfd1752cd0f6e46d34e89d61a9dd136305563b0 Mon Sep 17 00:00:00 2001 From: "Bruno Zanotti (ADHOC)" Date: Mon, 14 Sep 2020 14:53:22 +0000 Subject: [PATCH] [IMP] l10n_ar: "Argentinian" to "Argentinean" Change all references of "Argentinian" with "Argentinean". closes odoo/odoo#57670 Related: odoo/enterprise#13210 Signed-off-by: Josse Colpaert --- addons/l10n_ar/__manifest__.py | 4 ++-- addons/l10n_ar/data/account_chart_template_data2.xml | 2 +- addons/l10n_ar/i18n/es.po | 4 ++-- addons/l10n_ar/i18n/l10n_ar.pot | 4 ++-- addons/l10n_ar/models/account_chart_template.py | 4 ++-- addons/l10n_ar/models/account_move.py | 6 +++--- addons/l10n_ar/models/res_company.py | 4 ++-- addons/l10n_ar/models/res_partner.py | 8 ++++---- addons/l10n_ar/views/l10n_latam_document_type_view.xml | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/addons/l10n_ar/__manifest__.py b/addons/l10n_ar/__manifest__.py index 61fb5d9fa33..8ed8d4828fa 100644 --- a/addons/l10n_ar/__manifest__.py +++ b/addons/l10n_ar/__manifest__.py @@ -7,7 +7,7 @@ Functional ---------- -This module add accounting features for the Argentinian localization, which represent the minimal configuration needed for a company to operate in Argentina and under the AFIP (Administración Federal de Ingresos Públicos) regulations and guidelines. +This module add accounting features for the Argentinean localization, which represent the minimal configuration needed for a company to operate in Argentina and under the AFIP (Administración Federal de Ingresos Públicos) regulations and guidelines. Follow the next configuration steps for Production: @@ -55,7 +55,7 @@ Master Data: * Exento (EX) * Monotributo (Mono) -* Argentinian Taxes and Account Tax Groups (VAT taxes with the existing aliquots and other types) +* Argentinean Taxes and Account Tax Groups (VAT taxes with the existing aliquots and other types) * AFIP Responsibility Types * Fiscal Positions (in order to map taxes) * Legal Documents Types in Argentina diff --git a/addons/l10n_ar/data/account_chart_template_data2.xml b/addons/l10n_ar/data/account_chart_template_data2.xml index 517c1a34f79..59e7899aa6a 100644 --- a/addons/l10n_ar/data/account_chart_template_data2.xml +++ b/addons/l10n_ar/data/account_chart_template_data2.xml @@ -1,7 +1,7 @@ - + diff --git a/addons/l10n_ar/i18n/es.po b/addons/l10n_ar/i18n/es.po index fb1f5cf77b0..37d3e59b271 100644 --- a/addons/l10n_ar/i18n/es.po +++ b/addons/l10n_ar/i18n/es.po @@ -279,12 +279,12 @@ msgstr "Inicio actividades" #. module: l10n_ar #: model_terms:ir.ui.view,arch_db:l10n_ar.view_document_type_filter -msgid "Argentinian Documents" +msgid "Argentinean Documents" msgstr "Documentos Argentinos" #. module: l10n_ar #: model:ir.ui.menu,name:l10n_ar.account_reports_ar_statements_menu -msgid "Argentinian Statements" +msgid "Argentinean Statements" msgstr "Informes Argentinos" #. module: l10n_ar diff --git a/addons/l10n_ar/i18n/l10n_ar.pot b/addons/l10n_ar/i18n/l10n_ar.pot index a1a132a2efa..e99f73045b8 100644 --- a/addons/l10n_ar/i18n/l10n_ar.pot +++ b/addons/l10n_ar/i18n/l10n_ar.pot @@ -275,12 +275,12 @@ msgstr "" #. module: l10n_ar #: model_terms:ir.ui.view,arch_db:l10n_ar.view_document_type_filter -msgid "Argentinian Documents" +msgid "Argentinean Documents" msgstr "" #. module: l10n_ar #: model:ir.ui.menu,name:l10n_ar.account_reports_ar_statements_menu -msgid "Argentinian Statements" +msgid "Argentinean Statements" msgstr "" #. module: l10n_ar diff --git a/addons/l10n_ar/models/account_chart_template.py b/addons/l10n_ar/models/account_chart_template.py index 7f689768e17..aace31e5203 100644 --- a/addons/l10n_ar/models/account_chart_template.py +++ b/addons/l10n_ar/models/account_chart_template.py @@ -17,7 +17,7 @@ class AccountChartTemplate(models.Model): return res def _prepare_all_journals(self, acc_template_ref, company, journals_dict=None): - """ If Argentinian chart, we don't create sales journal as we need more + """ If Argentinean chart, we don't create sales journal as we need more data to create it properly """ res = super()._prepare_all_journals(acc_template_ref, company, journals_dict=journals_dict) if company.country_id == self.env.ref('base.ar'): @@ -57,7 +57,7 @@ class AccountChartTemplate(models.Model): 'country_id': self.env.ref('base.ar').id, 'tax_calculation_rounding_method': 'round_globally', }) - # set CUIT identification type (which is the argentinian vat) in the created company partner instead of + # set CUIT identification type (which is the argentinean vat) in the created company partner instead of # the default VAT type. company.partner_id.l10n_latam_identification_type_id = self.env.ref('l10n_ar.it_cuit') diff --git a/addons/l10n_ar/models/account_move.py b/addons/l10n_ar/models/account_move.py index b8bd0b01274..68a099389f8 100644 --- a/addons/l10n_ar/models/account_move.py +++ b/addons/l10n_ar/models/account_move.py @@ -87,7 +87,7 @@ class AccountMove(models.Model): domain = ['|', ('code', 'in', ['99'])] + domain return domain - def _check_argentinian_invoice_taxes(self): + def _check_argentinean_invoice_taxes(self): # check vat on companies thats has it (Responsable inscripto) for inv in self.filtered(lambda x: x.company_id.l10n_ar_company_requires_vat): @@ -158,7 +158,7 @@ class AccountMove(models.Model): # We make validations here and not with a constraint because we want validation before sending electronic # data on l10n_ar_edi - ar_invoices._check_argentinian_invoice_taxes() + ar_invoices._check_argentinean_invoice_taxes() posted = super()._post(soft) posted._set_afip_service_dates() return posted @@ -215,7 +215,7 @@ class AccountMove(models.Model): def _l10n_ar_get_amounts(self, company_currency=False): """ Method used to prepare data to present amounts and taxes related amounts when creating an - electronic invoice for argentinian and the txt files for digital VAT books. Only take into account the argentinian taxes """ + electronic invoice for argentinean and the txt files for digital VAT books. Only take into account the argentinean taxes """ self.ensure_one() amount_field = company_currency and 'balance' or 'price_subtotal' # if we use balance we need to correct sign (on price_subtotal is positive for refunds and invoices) diff --git a/addons/l10n_ar/models/res_company.py b/addons/l10n_ar/models/res_company.py index 72bd820f979..d08df6f048a 100644 --- a/addons/l10n_ar/models/res_company.py +++ b/addons/l10n_ar/models/res_company.py @@ -19,7 +19,7 @@ class ResCompany(models.Model): @api.onchange('country_id') def onchange_country(self): - """ Argentinian companies use round_globally as tax_calculation_rounding_method """ + """ Argentinean companies use round_globally as tax_calculation_rounding_method """ for rec in self.filtered(lambda x: x.country_id == self.env.ref('base.ar')): rec.tax_calculation_rounding_method = 'round_globally' @@ -31,7 +31,7 @@ class ResCompany(models.Model): remaining.l10n_ar_company_requires_vat = False def _localization_use_documents(self): - """ Argentinian localization use documents """ + """ Argentinean localization use documents """ self.ensure_one() return True if self.country_id == self.env.ref('base.ar') else super()._localization_use_documents() diff --git a/addons/l10n_ar/models/res_partner.py b/addons/l10n_ar/models/res_partner.py index 416beaf1a4f..134b33b1372 100644 --- a/addons/l10n_ar/models/res_partner.py +++ b/addons/l10n_ar/models/res_partner.py @@ -41,7 +41,7 @@ class ResPartner(models.Model): rec.l10n_ar_formatted_vat = stdnum.ar.cuit.format(rec.l10n_ar_vat) except Exception as error: rec.l10n_ar_formatted_vat = rec.l10n_ar_vat - _logger.runbot("Argentinian VAT was not formatted: %s", repr(error)) + _logger.runbot("Argentinean VAT was not formatted: %s", repr(error)) remaining = self - recs_ar_vat remaining.l10n_ar_formatted_vat = False @@ -58,7 +58,7 @@ class ResPartner(models.Model): @api.constrains('vat', 'l10n_latam_identification_type_id') def check_vat(self): - """ Since we validate more documents than the vat for Argentinian partners (CUIT - VAT AR, CUIL, DNI) we + """ Since we validate more documents than the vat for Argentinean partners (CUIT - VAT AR, CUIL, DNI) we extend this method in order to process it. """ # NOTE by the moment we include the CUIT (VAT AR) validation also here because we extend the messages # errors to be more friendly to the user. In a future when Odoo improve the base_vat message errors @@ -74,7 +74,7 @@ class ResPartner(models.Model): def ensure_vat(self): """ This method is a helper that returns the VAT number is this one is defined if not raise an UserError. - VAT is not mandatory field but for some Argentinian operations the VAT is required, for eg validate an + VAT is not mandatory field but for some Argentinean operations the VAT is required, for eg validate an electronic invoice, build a report, etc. This method can be used to validate is the VAT is proper defined in the partner """ @@ -96,7 +96,7 @@ class ResPartner(models.Model): module = rec._get_validation_module() except Exception as error: module = False - _logger.runbot("Argentinian document was not validated: %s", repr(error)) + _logger.runbot("Argentinean document was not validated: %s", repr(error)) if not module: continue diff --git a/addons/l10n_ar/views/l10n_latam_document_type_view.xml b/addons/l10n_ar/views/l10n_latam_document_type_view.xml index bb500c71d86..e0798f65cae 100644 --- a/addons/l10n_ar/views/l10n_latam_document_type_view.xml +++ b/addons/l10n_ar/views/l10n_latam_document_type_view.xml @@ -31,7 +31,7 @@ - +