diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index 6fbaa06ea18..398730d6400 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -1552,7 +1552,12 @@ class SaleOrderLine(models.Model): # As included taxes are not excluded from the computed subtotal, `compute_all()` method # has to be called to retrieve the subtotal without them. # `price_reduce_taxexcl` cannot be used as it is computed from `price_subtotal` field. (see upper Note) - price_subtotal = line.tax_id.compute_all(price_subtotal)['total_excluded'] + price_subtotal = line.tax_id.compute_all( + price_subtotal, + currency=line.order_id.currency_id, + quantity=line.product_uom_qty, + product=line.product_id, + partner=line.order_id.partner_shipping_id)['total_excluded'] if any(line.invoice_lines.mapped(lambda l: l.discount != line.discount)): # In case of re-invoicing with different discount we try to calculate manually the