From 9b602ae648e6667a932b8edc11977ab0b8c70e86 Mon Sep 17 00:00:00 2001 From: len-odoo Date: Wed, 5 Sep 2018 16:43:41 +0200 Subject: [PATCH] [FIX] base: allow to use Python builtins in views Py.js does support Python builtins, e.g. abs, len, str, which can be used in views if the view validation accepts it. opw 1879160 --- odoo/addons/base/ir/ir_ui_view.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/odoo/addons/base/ir/ir_ui_view.py b/odoo/addons/base/ir/ir_ui_view.py index 3529e183ad4..f181b1786b2 100644 --- a/odoo/addons/base/ir/ir_ui_view.py +++ b/odoo/addons/base/ir/ir_ui_view.py @@ -905,6 +905,12 @@ actual arch. 'datetime', 'relativedelta', 'current_date', + 'abs', + 'len', + 'bool', + 'float', + 'str', + 'unicode', } def get_attrs_field_names(self, arch, model, editable):