Search also on variant name when searching on template record name

issue9026
review282891002
This commit is contained in:
Sergi Almacellas Abellana committed 2020-02-17 10:17:31 +01:00
1 parent 10f728aeb9
commit 9b4372ee93
2 files changed
+6

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
* Search also on variant name when searching on template record name
Version 5.4.0 - 2019-11-04
* Bug fixes (see mercurial logs for details)
* Allow the product code to be set by a sequence
+4
View File
@@ -108,6 +108,10 @@ class Template(
return pool.get('product.cost_price_method')
return super(Template, cls).multivalue_model(field)
@classmethod
def search_rec_name(cls, name, clause):
return [('products.rec_name',) + tuple(clause[1:])]
@staticmethod
def default_type():
return 'goods'