[FIX] Purchase ok (can be purchase) should only be used for domains
bzr revid: jco@openerp.com-20130402115254-mtp113vyk4yhlmyb
This commit is contained in:
parent
9c1b0f6164
commit
0b5788eec7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue