Skip to content
Snippets Groups Projects
Commit f8e4e98d authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] l10n_id_efaktur: filter invoice lines on display_type (bis)


Missing line in 24c32607 forward-port (only for 14.0).

opw-2451571

closes odoo/odoo#67240

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 0bbae314
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ class AccountMove(models.Model):
and any(ppn_tag.id not in line.tax_tag_ids.ids for line in move.line_ids if line.exclude_from_invoice_tab is False and not line.display_type):
raise UserError(_('Cannot mix VAT subject and Non-VAT subject items in the same invoice with this kode transaksi.'))
for move in self.filtered(lambda m: m.l10n_id_kode_transaksi == '08'):
if any(ppn_tag.id in line.tax_tag_ids.ids for line in move.line_ids if line.exclude_from_invoice_tab is False):
if any(ppn_tag.id in line.tax_tag_ids.ids for line in move.line_ids if line.exclude_from_invoice_tab is False and not line.display_type):
raise UserError('Kode transaksi 08 is only for non VAT subject items.')
@api.constrains('l10n_id_tax_number')
......
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