From c44082312e6c9d86469ceebc3fb2466e6e550655 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 3 Apr 2014 11:19:12 +0200 Subject: [PATCH] [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 --- addons/stock/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/product.py b/addons/stock/product.py index 4ed9d4db2ae..71402d363a4 100644 --- a/addons/stock/product.py +++ b/addons/stock/product.py @@ -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 []