From 88e1b007c7961b57379572d344c51163141b0b97 Mon Sep 17 00:00:00 2001 From: ced <> Date: Fri, 29 Dec 2006 11:54:11 +0000 Subject: [PATCH] REPORT_SALE: fix for sale without line bzr revid: ced-7ccf811157bdbd01654ca29f60632fc25c084f1d --- addons/report_sale/report_sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/report_sale/report_sale.py b/addons/report_sale/report_sale.py index 71543660ae9..bced706b65c 100644 --- a/addons/report_sale/report_sale.py +++ b/addons/report_sale/report_sale.py @@ -65,7 +65,7 @@ class report_sale_order_product(osv.osv): sum(l.product_uom_qty*l.price_unit) as price_total, (sum(l.product_uom_qty*l.price_unit)/sum(l.product_uom_qty*u.factor))::decimal(16,2) as price_average from sale_order s - left join sale_order_line l on (s.id=l.order_id) + right join sale_order_line l on (s.id=l.order_id) left join product_uom u on (u.id=l.product_uom) group by l.product_id, substring(s.date_order for 7),s.state ) @@ -117,7 +117,7 @@ class report_sale_order_category(osv.osv): sum(l.product_uom_qty*l.price_unit) as price_total, (sum(l.product_uom_qty*l.price_unit)/sum(l.product_uom_qty*u.factor))::decimal(16,2) as price_average from sale_order s - left join sale_order_line l on (s.id=l.order_id) + right join sale_order_line l on (s.id=l.order_id) left join product_product p on (p.id=l.product_id) left join product_template t on (t.id=p.product_tmpl_id) left join product_uom u on (u.id=l.product_uom)