[FIX] workflow returning actions

bzr revid: fp@tinyerp.com-20111211102140-8zyihjdldfbas85u
This commit is contained in:
Fabien Pinckaers 2011-12-11 11:21:40 +01:00
parent 785f2bb5af
commit f8ef59db7e
1 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,9 @@ def _execute(cr, workitem, activity, ident, stack):
elif activity['kind']=='function':
if workitem['state']=='active':
_state_set(cr, workitem, activity, 'running', ident)
wkf_expr.execute(cr, ident, workitem, activity)
returned_action = wkf_expr.execute(cr, ident, workitem, activity)
if type(returned_action) in (dict,):
stack.append(returned_action)
if activity['action_id']:
res2 = wkf_expr.execute_action(cr, ident, workitem, activity)
# A client action has been returned