[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>
This commit is contained in:
Katherine Zaoral
2020-05-07 16:01:13 +00:00
parent eb2c9e07ba
commit 9b27b4d923
@@ -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