diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py index c72b7b4abb15781b9cd7280c010cc0ff5ba98e5c..09d358abdf0da2a97302f863d0ad40ed93de0d9d 100644 --- a/addons/sale/report/sale_report.py +++ b/addons/sale/report/sale_report.py @@ -95,7 +95,7 @@ class SaleReport(models.Model): sum(p.weight * l.product_uom_qty / u.factor * u2.factor) as weight, sum(p.volume * l.product_uom_qty / u.factor * u2.factor) as volume, l.discount as discount, - sum((l.price_unit * l.discount / 100.0 / CASE COALESCE(s.currency_rate, 0) WHEN 0 THEN 1.0 ELSE s.currency_rate END)) as discount_amount, + sum((l.price_unit * l.product_uom_qty * l.discount / 100.0 / CASE COALESCE(s.currency_rate, 0) WHEN 0 THEN 1.0 ELSE s.currency_rate END)) as discount_amount, s.id as order_id """