From 68df3c4c9d8ff071603a8cda855e4d1140595b55 Mon Sep 17 00:00:00 2001 From: Olivier Laurent Date: Mon, 17 Aug 2009 11:33:01 +0200 Subject: [FIX] bin/workflow: 'stack' variable was not initialized when sql query returned an empty set. bzr revid: olt@tinyerp.com-20090817093301-epwojuey9j15ih3d --- bin/workflow/instance.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/workflow/instance.py') 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) -- cgit v1.2.3