diff options
| author | Olivier Laurent <olt@tinyerp.com> | 2009-08-17 11:33:01 +0200 |
|---|---|---|
| committer | Olivier Laurent <olt@tinyerp.com> | 2009-08-17 11:33:01 +0200 |
| commit | 68df3c4c9d8ff071603a8cda855e4d1140595b55 (patch) | |
| tree | 43ea2b1918e88cdc0997aef292234a92c309a96a /bin/workflow/instance.py | |
| parent | b34691c2f67968a38f310047f59df0612db18c6c (diff) | |
[FIX] bin/workflow: 'stack' variable was not initialized when sql query returned an empty set.
bzr revid: olt@tinyerp.com-20090817093301-epwojuey9j15ih3d
Diffstat (limited to 'bin/workflow/instance.py')
| -rw-r--r-- | bin/workflow/instance.py | 1 |
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) |
