Schedulers Bugfix

bzr revid: fp@tinyerp.com-20080819180747-h48nvqfq4118o7dt
This commit is contained in:
Fabien Pinckaers
2008-08-19 20:07:47 +02:00
parent 6519472370
commit 2015a95d5a
+2 -1
View File
@@ -47,8 +47,9 @@ def _procure_confirm(self, cr, uid, schedule_cycle=1.0, po_cycle=1.0,\
cr = pooler.get_db(use_new_cursor).cursor()
wf_service = netsvc.LocalService("workflow")
orderpoint_obj = pooler.get_pool(cr.dbname).get('stock.warehouse.orderpoint')
procurement_obj = pooler.get_pool(cr.dbname).get('mrp.procurement')
ids = procurement_obj.search(cr, uid, [('state', '=', 'exception')], order='date_planned')
ids=orderpoint_obj.search(cr,uid,[], order="date_planned")
for id in ids:
wf_service.trg_validate(uid, 'mrp.procurement', id, 'button_restart', cr)
if use_new_cursor: