[REV] Revert the changes
bzr revid: hip@tinyerp.com-20130131111036-picfcuvfq4zhjk0m
This commit is contained in:
parent
6d9b41b3bf
commit
3a614884cc
|
@ -235,10 +235,10 @@ class product_product(osv.osv):
|
||||||
else:
|
else:
|
||||||
location_ids = []
|
location_ids = []
|
||||||
wids = warehouse_obj.search(cr, uid, [], context=context)
|
wids = warehouse_obj.search(cr, uid, [], context=context)
|
||||||
|
if not wids:
|
||||||
|
return res
|
||||||
for w in warehouse_obj.browse(cr, uid, wids, context=context):
|
for w in warehouse_obj.browse(cr, uid, wids, context=context):
|
||||||
location_ids.append(w.lot_stock_id.id)
|
location_ids.append(w.lot_stock_id.id)
|
||||||
else:
|
|
||||||
return res
|
|
||||||
|
|
||||||
# build the list of ids of children of the location given by id
|
# build the list of ids of children of the location given by id
|
||||||
if context.get('compute_child',True):
|
if context.get('compute_child',True):
|
||||||
|
|
Loading…
Reference in New Issue