[FIX] sale: display right quantity in sales by channel report

By this commit, in sales by channel report of product page we are able to show the quanity of product which is just in 'sale' and 'done' state.

Before this commit, the quantity of product included every state except 'cancel'.

This commit is related to issue: #27643

closes odoo/odoo#28948

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
Parth Choksi
2018-11-22 09:44:21 +00:00
parent 3303f87102
commit c13298fdac
@@ -52,7 +52,7 @@ class PosSaleReport(models.Model):
LEFT JOIN product_pricelist pp ON (so.pricelist_id = pp.id)
LEFT JOIN uom_uom u on (u.id=sol.product_uom)
LEFT JOIN uom_uom u2 on (u2.id=pt.uom_id)
WHERE so.state != 'cancel'
WHERE so.state in ('sale','done')
"""
return so_str