diff --git a/modules/sale_credit_limit/party.py b/modules/sale_credit_limit/party.py index 3a5ef12315..16c6dff287 100644 --- a/modules/sale_credit_limit/party.py +++ b/modules/sale_credit_limit/party.py @@ -35,6 +35,8 @@ class Party(metaclass=PoolMeta): if not quantity: continue for invoice_line in line.invoice_lines: + if invoice_line.type != 'line': + continue invoice = invoice_line.invoice if invoice and invoice.move: quantity -= Uom.compute_qty(