[FIX] tools: stop evaluating twice <function eval="..."> in _eval_xml
After a bad merge d785adba6c the eval code
was evaluated twice.
closes odoo/odoo#45554
X-original-commit: c0316bb807e6c2db9c3567cba1aeb52da946cae7
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
This commit is contained in:
@@ -184,7 +184,6 @@ def _eval_xml(self, node, env):
|
||||
|
||||
if a_eval:
|
||||
idref2 = _get_idref(self, env, model_str, self.idref)
|
||||
args = safe_eval(a_eval, idref2)
|
||||
args = list(safe_eval(a_eval, idref2))
|
||||
for child in node:
|
||||
if child.tag == 'value' and child.get('name'):
|
||||
|
||||
Reference in New Issue
Block a user