[MERGE] procurement, fix of scheduler: there is no need to filter on product that can be pruchased only (we may need to re-stock some components (of BoM) that can't be purchased)

bzr revid: qdp-launchpad@openerp.com-20130405144645-yj03ser7ks5vpwbj
This commit is contained in:
Quentin (OpenERP) 2013-04-05 16:46:45 +02:00
commit 2dff36cfa8
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class procurement_order(osv.osv):
wf_service = netsvc.LocalService("workflow")
warehouse_ids = warehouse_obj.search(cr, uid, [], context=context)
products_ids = product_obj.search(cr, uid, [('purchase_ok', '=', True)], order='id', context=context)
products_ids = product_obj.search(cr, uid, [], order='id', context=context)
for warehouse in warehouse_obj.browse(cr, uid, warehouse_ids, context=context):
context['warehouse'] = warehouse