Improve search_rec_name of category

Directly return the domain instead of the "id in" form.
This commit is contained in:
Cédric Krier
2014-11-02 16:14:16 +01:00
parent 6f19b35671
commit 2939697fd3
+1 -2
View File
@@ -67,7 +67,6 @@ class Category(ModelSQL, ModelView):
for name in values:
domain.append((field, clause[1], name))
field = 'parent.' + field
categories = cls.search(domain, order=[])
return [('id', 'in', [category.id for category in categories])]
return domain
#TODO Handle list
return [('name',) + tuple(clause[1:])]