[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:
parent
8a7b3b883c
commit
c44082312e
|
@ -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 []
|
||||
|
|
Loading…
Reference in New Issue