[IMP] improved code
bzr revid: tpa@tinyerp.com-20121023091001-a5z5utrnxv3tcbsk
This commit is contained in:
parent
b7ad28bfa7
commit
790b07a83a
|
@ -44,7 +44,7 @@ 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(lambda action: action != "", action.split('\n')):
|
for line in filter(None, action.split('\n')):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
uid=ident[0]
|
uid=ident[0]
|
||||||
model=ident[1]
|
model=ident[1]
|
||||||
|
|
Loading…
Reference in New Issue