[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:
Paul Morelle
2020-02-17 17:35:19 +00:00
parent 858c2e4da0
commit 98d5770e5d
-1
View File
@@ -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'):