diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index 7d877ab8279..e486183cb69 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -1454,7 +1454,7 @@ class SaleOrderLine(models.Model): amount_invoiced -= invoice_line.currency_id._convert(invoice_line.price_subtotal, line.currency_id, line.company_id, invoice_date) line.untaxed_amount_invoiced = amount_invoiced - @api.depends('state', 'price_reduce', 'product_id', 'untaxed_amount_invoiced', 'qty_delivered') + @api.depends('state', 'price_reduce', 'product_id', 'untaxed_amount_invoiced', 'qty_delivered', 'product_uom_qty') def _compute_untaxed_amount_to_invoice(self): """ Total of remaining amount to invoice on the sale order line (taxes excl.) as total_sol - amount already invoiced