Skip to content

Commit

Permalink
[IMP] account_invoice_validate_tax: No aplicar control de impuestos a…
Browse files Browse the repository at this point in the history
… lineas de tipo seccion o nota.
  • Loading branch information
alfredoavanzosc committed May 4, 2021
1 parent 97611e9 commit ca89f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion account_invoice_validate_tax/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class AccountInvoice(models.Model):
@api.multi
def action_invoice_open(self):
for invoice in self:
for line in invoice.invoice_line_ids:
for line in invoice.invoice_line_ids.filtered(
lambda x: x.display_type not in ('line_section',
'line_note')):
if not line.invoice_line_tax_ids:
message = _(u"You must introduce tax to the line with "
"description: {}").format(line.name)
Expand Down

0 comments on commit ca89f0e

Please sign in to comment.