[FIX] l10n_cl: do not remove document type for other countries

You don't want this for other latam countries.
This commit is contained in:
wan
2021-07-19 10:14:24 +00:00
committed by william-andre
parent 8dc9e64421
commit 060b26e95e
+2 -1
View File
@@ -92,7 +92,8 @@ class AccountMove(models.Model):
@api.onchange('journal_id')
def _l10n_cl_onchange_journal(self):
self.l10n_latam_document_type_id = False
if self.company_id.country_id.code == 'CL':
self.l10n_latam_document_type_id = False
def _post(self, soft=True):
self._check_document_types_post()