[MERGE] OPW 577225: avoid errors in Sales Analysis for orders without lines

Note: this fix requires an update of the
sale module, or a manual execution of the
query that defines the reporting view.

bzr revid: odo@openerp.com-20120730115138-bgfxzhz075p1cc77
This commit is contained in:
Olivier Dony
2012-07-30 13:51:38 +02:00
+1 -1
View File
@@ -92,7 +92,7 @@ class sale_report(osv.osv):
s.project_id as analytic_account_id
from
sale_order s
left join sale_order_line l on (s.id=l.order_id)
join sale_order_line l on (s.id=l.order_id)
left join product_product p on (l.product_id=p.id)
left join product_template t on (p.product_tmpl_id=t.id)
left join product_uom u on (u.id=l.product_uom)