[FIX] bin/workflow: 'stack' variable was not initialized when sql query returned...
authorOlivier Laurent <olt@tinyerp.com>
Mon, 17 Aug 2009 09:33:01 +0000 (11:33 +0200)
committerOlivier Laurent <olt@tinyerp.com>
Mon, 17 Aug 2009 09:33:01 +0000 (11:33 +0200)
bzr revid: olt@tinyerp.com-20090817093301-epwojuey9j15ih3d

bin/workflow/instance.py

index b78b5ae..0baafdd 100644 (file)
@@ -44,6 +44,7 @@ def delete(cr, ident):
 
 def validate(cr, inst_id, ident, signal, force_running=False):
     cr.execute("select * from wkf_workitem where inst_id=%s", (inst_id,))
+    stack = []
     for witem in cr.dictfetchall():
         stack = []
         workitem.process(cr, witem, ident, signal, force_running, stack=stack)