[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
This commit is contained in:
len-odoo
2018-09-07 11:38:22 +02:00
committed by len-odoo
parent 7e83ea8d57
commit 9b602ae648
+6
View File
@@ -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):