Do not update field definition with Function field definition
issue11225 review360871002 (grafted from 557937450ca90e41c4a8d4dd729c6d723a47ef6a) --HG-- branch : 6.0
This commit is contained in:
1 parent
dfe37be952
commit
0892cbf085
1 file changed
-1
@@ -142,7 +142,6 @@ class Function(Field):
|
||||
|
||||
def definition(self, model, language):
|
||||
definition = self._field.definition(model, language)
|
||||
definition.update(super().definition(model, language))
|
||||
definition['searchable'] &= (
|
||||
bool(self.searcher) or hasattr(model, 'domain_' + self.name))
|
||||
definition['sortable'] &= hasattr(model, 'order_' + self.name)
|
||||
|
||||
Reference in new issue
Block a user