Skip to content

Commit 620453c

Browse files
committed
[FIX] Workflow function activities explode if they contain empty lines.
bzr revid: [email protected]
1 parent 9ab71c7 commit 620453c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openerp/workflow/wkf_expr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __getitem__(self, key):
4444
def _eval_expr(cr, ident, workitem, action):
4545
ret=False
4646
assert action, 'You used a NULL action in a workflow, use dummy node instead.'
47-
for line in action.split('\n'):
47+
for line in filter(lambda action: action != "", action.split('\n')):
4848
line = line.strip()
4949
uid=ident[0]
5050
model=ident[1]

0 commit comments

Comments
 (0)