[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
This commit is contained in:
Goffin Simon
2016-12-27 11:09:08 +01:00
parent e98c329039
commit fe705b514c
@@ -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,