Skip to content
Snippets Groups Projects
Commit 089a9d9f authored by Susana's avatar Susana
Browse files

[FIX] l10n_cl: fixed wrong domain getting document types


closes odoo/odoo#37846

Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
parent 738214f0
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class AccountMove(models.Model):
document_type_ids = self.journal_id.l10n_cl_sequence_ids.mapped('l10n_latam_document_type_id').ids
domain += [('id', 'in', document_type_ids)]
if self.partner_id.l10n_cl_sii_taxpayer_type == '3':
domain += [('code', 'in', ['35', '38', '39', '41'])]
domain += [('code', 'in', ['35', '38', '39', '41', '56', '61'])]
return domain
@api.constrains('type', 'l10n_latam_document_type_id')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment