[IMP] Change quantity on hand, incoming, outgoing, virtual to include all locations of the warehouse, not just stock

bzr revid: jco@openerp.com-20140403091912-r017dtfa1g23o40z
This commit is contained in:
Josse Colpaert 2014-04-03 11:19:12 +02:00
parent 8a7b3b883c
commit c44082312e
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class product_product(osv.osv):
wids = warehouse_obj.search(cr, uid, [], 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.view_location_id.id)
operator = context.get('compute_child',True) and 'child_of' or 'in'
domain = context.get('force_company', False) and ['&', ('company_id', '=', context['force_company'])] or []