diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2021-03-04 13:43:52 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2021-03-04 13:43:52 +0000 |
| commit | f8e4e98d9fba2d399efa4ca48f8d15d620fec9c7 (patch) | |
| tree | 7333f03a0dc34cee933a231b9ca00d1512c468ee | |
| parent | 0bbae314ede2d7112a32954f06a8d541932caac9 (diff) | |
[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: Nicolas Lempereur (nle) <nle@odoo.com>
| -rw-r--r-- | addons/l10n_id_efaktur/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_id_efaktur/models/account_move.py b/addons/l10n_id_efaktur/models/account_move.py index 0937bbe2ade..a066afc918a 100644 --- a/addons/l10n_id_efaktur/models/account_move.py +++ b/addons/l10n_id_efaktur/models/account_move.py @@ -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') |
