[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user