[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 <jco@openerp.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<menuitem id="account_reports_ar_statements_menu" name="Argentinian Statements" parent="account.menu_finance_reports" sequence="3" groups="account.group_account_readonly"/>
|
||||
<menuitem id="account_reports_ar_statements_menu" name="Argentinean Statements" parent="account.menu_finance_reports" sequence="3" groups="account.group_account_readonly"/>
|
||||
|
||||
<record id="l10nar_base_chart_template" model="account.chart.template">
|
||||
<field name="property_account_receivable_id" ref="base_deudores_por_ventas"/>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<field name='code' position="after">
|
||||
<field name='l10n_ar_letter'/>
|
||||
<filter string="Argentinian Documents" name="localization" domain="[('country_id.code', '=', 'AR')]"/>
|
||||
<filter string="Argentinean Documents" name="localization" domain="[('country_id.code', '=', 'AR')]"/>
|
||||
</field>
|
||||
<group>
|
||||
<filter string="Document Letter" name="l10n_ar_letter" context="{'group_by':'l10n_ar_letter'}"/>
|
||||
|
||||
Reference in New Issue
Block a user