summaryrefslogtreecommitdiff
path: root/bin/workflow/instance.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/workflow/instance.py')
-rw-r--r--bin/workflow/instance.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/workflow/instance.py b/bin/workflow/instance.py
index b78b5ae7dbe..0baafdd71ce 100644
--- a/bin/workflow/instance.py
+++ b/bin/workflow/instance.py
@@ -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)