From fe705b514c0834be8592b9d35cd7fed1d5d52f0b Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 27 Dec 2016 10:40:18 +0100 Subject: [PATCH] [FIX] point_of_sale: Product quantity in Orders Analysis The product quantity in Orders Analysis must be expressed in the uom of the product like in the Sales Analysis. In a POS order line, the uom is always expressed in the uom of the product. Closes #14599 opw:696927 --- addons/point_of_sale/report/pos_order_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/report/pos_order_report.py b/addons/point_of_sale/report/pos_order_report.py index 7adc4f8528b..3df8435a4f4 100644 --- a/addons/point_of_sale/report/pos_order_report.py +++ b/addons/point_of_sale/report/pos_order_report.py @@ -44,7 +44,7 @@ class pos_order_report(osv.osv): min(l.id) as id, count(*) as nbr, s.date_order as date, - sum(l.qty * u.factor) as product_qty, + sum(l.qty) as product_qty, sum(l.qty * l.price_unit) as price_sub_total, sum((l.qty * l.price_unit) * (100 - l.discount) / 100) as price_total, sum((l.qty * l.price_unit) * (l.discount / 100)) as total_discount,