[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user