Skip to content
Snippets Groups Projects
Commit 1314abba authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] sale: Wrong untaxed_amount_to_invoice


Steps to reproduce the bug:

- Let's consider an included tax T (10%) and a product P (11€) with invoicing policy based on delivery
- Create a sale order SO with one line L with 2 P and T
- Confirm SO and deliver it

Bug:

The untaxed_amount_to_invoice was 40€ on L instead 20€

opw:2457660

closes odoo/odoo#67181

X-original-commit: 56d92277
Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent 580456b6
No related branches found
No related tags found
No related merge requests found
......@@ -1560,7 +1560,7 @@ class SaleOrderLine(models.Model):
# 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,
line.price_reduce,
currency=line.order_id.currency_id,
quantity=line.product_uom_qty,
product=line.product_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment