This is not the only problem with that new safe_eval function.
If you use "filter" in a .rml file to produce a report, like for example:
[[ repeatIn( filter( lambda a: not a.is_phantom, o.order_line) , 'line') ]]
you have the following error:
File "/home/weyl/openerp-server-5.0.14/bin/tools/safe_eval.py", line 272, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
NameError: name 'filter' is not defined
This is not the only problem with that new safe_eval function.
If you use "filter" in a .rml file to produce a report, like for example:
[[ repeatIn( filter( lambda a: not a.is_phantom, o.order_line) , 'line') ]]
you have the following error: weyl/openerp- server- 5.0.14/ bin/tools/ safe_eval. py", line 272, in safe_eval expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "/home/
return eval(test_
File "", line 1, in <module>
NameError: name 'filter' is not defined