[FIX] Workflow function activities explode if they contain empty lines.

bzr revid: tpa@tinyerp.com-20120905102821-8q6d42d5p0xudxmv
This commit is contained in:
Turkesh Patel (Open ERP) 2012-09-05 15:58:21 +05:30
parent 9ab71c750a
commit 620453c4a0
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Env(dict):
def _eval_expr(cr, ident, workitem, action):
ret=False
assert action, 'You used a NULL action in a workflow, use dummy node instead.'
for line in action.split('\n'):
for line in filter(lambda action: action != "", action.split('\n')):
line = line.strip()
uid=ident[0]
model=ident[1]