From 3b759b482ed8d77606a01296378be3f487dbf504 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 19 Apr 2010 00:13:50 +0200 Subject: [PATCH] Fix search_rec_name to return well-formed domain. --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index 954dd30967..5a0e48ded7 100644 --- a/product.py +++ b/product.py @@ -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')