diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index 9ca3bf8a20a..6b214c8d960 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -1184,7 +1184,12 @@ class SaleOrderLine(models.Model): else: line.product_updatable = True - @api.depends('qty_invoiced', 'qty_delivered', 'product_uom_qty', 'order_id.state') + @api.depends( + 'qty_invoiced', + 'qty_delivered', + 'product_uom_qty', + 'order_id.state', + 'product_id.invoice_policy') def _get_to_invoice_qty(self): """ Compute the quantity to invoice. If the invoice policy is order, the quantity to invoice is