[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user