Skip to content
Snippets Groups Projects
Commit 1f15055d authored by Raphael Collet's avatar Raphael Collet Committed by Olivier Dony
Browse files

[FIX] fields: a function field with fnct_search should be searchable

parent aa6af760
No related branches found
No related tags found
No related merge requests found
......@@ -557,7 +557,11 @@ class Field(object):
return False
def _description_searchable(self, env):
return self._description_store(env) or bool(self.search)
if self.store:
column = env[self.model_name]._columns.get(self.name)
return bool(getattr(column, 'store', True)) or \
bool(getattr(column, '_fnct_search', False))
return bool(self.search)
_description_manual = property(attrgetter('manual'))
_description_depends = property(attrgetter('depends'))
......
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