Fix search_rec_name to return well-formed domain.

This commit is contained in:
Bertrand Chenal committed 2010-04-19 00:13:50 +02:00
1 parent a1bf3d1303
commit 3b759b482e
1 file changed
+1 -1
+1 -1
View File
@@ -107,7 +107,7 @@ class Product(ModelSQL, ModelView):
ids += self.search(cursor, user, [('name',) + clause[1:]],
order=[], context=context)
return [('id', 'in', ids)]
return [('name',) + clause]
return [('name',) + clause[1:]]
def delete(self, cursor, user, ids, context=None):
template_obj = self.pool.get('product.template')