Extend searchable of Template Function field instead of definition
Since 4689fc76ddb7 the definition is based on the searchable result. (grafted from 4712f4eebd77aa4cc1a2f21c204f68fd33d8c000) --HG-- branch : 7.0
This commit is contained in:
1 parent
88a19f3fd9
commit
f10fd8ee6a
1 file changed
+2
-5
@@ -313,13 +313,10 @@ class TemplateFunction(fields.Function):
|
||||
name, tables['template'], Template)
|
||||
return order
|
||||
|
||||
def definition(self, model, language):
|
||||
def searchable(self, model):
|
||||
pool = Pool()
|
||||
Template = pool.get('product.template')
|
||||
definition = super().definition(model, language)
|
||||
definition['searchable'] = self._field.definition(
|
||||
Template, language)['searchable']
|
||||
return definition
|
||||
return super().searchable(model) and self._field.searchable(Template)
|
||||
|
||||
|
||||
class Product(
|
||||
|
||||
Reference in new issue
Block a user