[FIX] Purchase ok (can be purchase) should only be used for domains

bzr revid: jco@openerp.com-20130402115254-mtp113vyk4yhlmyb
This commit is contained in:
Josse Colpaert 2013-04-02 13:52:54 +02:00
parent 9c1b0f6164
commit 0b5788eec7
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