[FIX]sale_report: change querry so that existing lines with no associated product are still in sales analysis
bzr revid: csn@openerp.com-20130320113422-16e4l93cnzest71r
This commit is contained in:
@@ -89,10 +89,10 @@ class sale_report(osv.osv):
|
||||
from
|
||||
sale_order s
|
||||
join sale_order_line l on (s.id=l.order_id)
|
||||
join product_product p on (l.product_id=p.id)
|
||||
join product_template t on (p.product_tmpl_id=t.id)
|
||||
join product_uom u on (u.id=l.product_uom)
|
||||
join product_uom u2 on (u2.id=t.uom_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)
|
||||
left join product_uom u2 on (u2.id=t.uom_id)
|
||||
group by
|
||||
l.product_id,
|
||||
l.product_uom_qty,
|
||||
|
||||
@@ -69,10 +69,10 @@ class sale_report(osv.osv):
|
||||
from
|
||||
sale_order s
|
||||
join sale_order_line l on (s.id=l.order_id)
|
||||
join product_product p on (l.product_id=p.id)
|
||||
join product_template t on (p.product_tmpl_id=t.id)
|
||||
join product_uom u on (u.id=l.product_uom)
|
||||
join product_uom u2 on (u2.id=t.uom_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)
|
||||
left join product_uom u2 on (u2.id=t.uom_id)
|
||||
group by
|
||||
l.product_id,
|
||||
l.product_uom_qty,
|
||||
|
||||
Reference in New Issue
Block a user