Skip to content
Snippets Groups Projects
Commit d574c82f authored by Raphael Collet's avatar Raphael Collet
Browse files

[FIX] base: `ir.ui.view` field names in attributes

Make sure that `True`, `False` and `None` are not considered as field names.
parent 24a9d1de
No related branches found
No related tags found
No related merge requests found
......@@ -872,9 +872,22 @@ actual arch.
def get_attrs_symbols(self):
""" Return a set of predefined symbols for evaluating attrs. """
return {'self', 'parent', 'id', 'uid', 'context', 'context_today',
'active_id', 'active_ids', 'active_model',
'time', 'datetime', 'relativedelta', 'current_date'}
return {
'True', 'False', 'None', # those are identifiers in Python 2.7
'self',
'parent',
'id',
'uid',
'context',
'context_today',
'active_id',
'active_ids',
'active_model',
'time',
'datetime',
'relativedelta',
'current_date',
}
def get_attrs_field_names(self, arch):
""" Retrieve the field names appearing in context, domain and attrs, and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment