[IMP] wkf_expr: Ignore empty lines and lines with blanks.
bzr revid: vmt@openerp.com-20121128150637-pikxf9tw2nj0qpuk
This commit is contained in:
parent
790b07a83a
commit
63de663ece
|
@ -44,8 +44,10 @@ class Env(dict):
|
||||||
def _eval_expr(cr, ident, workitem, action):
|
def _eval_expr(cr, ident, workitem, action):
|
||||||
ret=False
|
ret=False
|
||||||
assert action, 'You used a NULL action in a workflow, use dummy node instead.'
|
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()
|
line = line.strip()
|
||||||
|
if not line:
|
||||||
|
continue
|
||||||
uid=ident[0]
|
uid=ident[0]
|
||||||
model=ident[1]
|
model=ident[1]
|
||||||
ids=[ident[2]]
|
ids=[ident[2]]
|
||||||
|
|
Loading…
Reference in New Issue