summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorKatherine Zaoral <kz@adhoc.com.ar>2020-05-04 18:28:46 +0000
committerKatherine Zaoral <kz@adhoc.com.ar>2020-05-07 16:01:13 +0000
commit9b27b4d9238b014ffc868342e5fc3545356cbd63 (patch)
tree22d6834eca9885bb3f60be51cc79c43315185f18 /addons
parenteb2c9e07ba5e28a4cd4c76ab2bf85353c042ee77 (diff)
[ADD] l10n_ar: set company's partner identification type to CUIT once
that the argentinian chart of account has been installed closes odoo/odoo#50880 X-original-commit: 3c55cae48936e195ec3411c55f577422c56828c3 Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_ar/models/account_chart_template.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/l10n_ar/models/account_chart_template.py b/addons/l10n_ar/models/account_chart_template.py
index 05e4517674f..24df6bb3236 100644
--- a/addons/l10n_ar/models/account_chart_template.py
+++ b/addons/l10n_ar/models/account_chart_template.py
@@ -57,6 +57,10 @@ 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
+ # the default VAT type.
+ company.partner_id.l10n_latam_identification_type_id = self.env.ref('l10n_ar.it_cuit')
+
res = super()._load(sale_tax_rate, purchase_tax_rate, company)
# If Responsable Monotributista remove the default purchase tax