[MERGE] OPW 590457: Cancelled procurements are no longer taken into account for the inventory analysis report
bzr revid: cbi@openerp.com-20130405123803-v4lbveeedbdlt3ep
This commit is contained in:
commit
1ff81f943c
|
@ -193,6 +193,7 @@ CREATE OR REPLACE view report_stock_inventory AS (
|
|||
LEFT JOIN product_uom pu2 ON (m.product_uom=pu2.id)
|
||||
LEFT JOIN product_uom u ON (m.product_uom=u.id)
|
||||
LEFT JOIN stock_location l ON (m.location_id=l.id)
|
||||
WHERE m.state != 'cancel'
|
||||
GROUP BY
|
||||
m.id, m.product_id, m.product_uom, pt.categ_id, m.partner_id, m.location_id, m.location_dest_id,
|
||||
m.prodlot_id, m.date, m.state, l.usage, l.scrap_location, m.company_id, pt.uom_id, to_char(m.date, 'YYYY'), to_char(m.date, 'MM')
|
||||
|
@ -216,6 +217,7 @@ CREATE OR REPLACE view report_stock_inventory AS (
|
|||
LEFT JOIN product_uom pu2 ON (m.product_uom=pu2.id)
|
||||
LEFT JOIN product_uom u ON (m.product_uom=u.id)
|
||||
LEFT JOIN stock_location l ON (m.location_dest_id=l.id)
|
||||
WHERE m.state != 'cancel'
|
||||
GROUP BY
|
||||
m.id, m.product_id, m.product_uom, pt.categ_id, m.partner_id, m.location_id, m.location_dest_id,
|
||||
m.prodlot_id, m.date, m.state, l.usage, l.scrap_location, m.company_id, pt.uom_id, to_char(m.date, 'YYYY'), to_char(m.date, 'MM')
|
||||
|
|
Loading…
Reference in New Issue