[IMP] wkf_expr: Ignore empty lines and lines with blanks.

bzr revid: vmt@openerp.com-20121128150637-pikxf9tw2nj0qpuk
This commit is contained in:
Vo Minh Thu 2012-11-28 16:06:37 +01:00
parent 790b07a83a
commit 63de663ece
1 changed files with 3 additions and 1 deletions

View File

@ -44,8 +44,10 @@ 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 filter(None, action.split('\n')):
for line in action.split('\n'):
line = line.strip()
if not line:
continue
uid=ident[0]
model=ident[1]
ids=[ident[2]]