From 9b27b4d9238b014ffc868342e5fc3545356cbd63 Mon Sep 17 00:00:00 2001 From: Katherine Zaoral Date: Mon, 4 May 2020 18:28:46 +0000 Subject: [PATCH] [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 --- addons/l10n_ar/models/account_chart_template.py | 4 ++++ 1 file changed, 4 insertions(+) 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