[FIX] sale order with no sale order line caused exception on sale reports

bzr revid: acl@openerp.com-20120726093110-9aszpk34drfzgwec
This commit is contained in:
Anael Closson
2012-07-26 11:31:10 +02:00
parent d62c46d505
commit 6bc5e3e078
+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)
inner 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)