From 55288155f5ef3ecfbe7ba69abce813a68ee09b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 28 Apr 2010 19:30:16 +0200 Subject: [PATCH] Fix search_model on ir.translation to return a list for issue1542 --- trytond/ir/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 208ac4e685..65e0e3904f 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -85,7 +85,7 @@ class Translation(ModelSQL, ModelView, Cacheable): cursor.execute('SELECT id FROM "%s" ' 'WHERE split_part(name, \',\', 1) %s %%s' % (self._table, clause[1]), (clause[2],)) - return ('id', 'in', [x[0] for x in cursor.fetchall()]) + return [('id', 'in', [x[0] for x in cursor.fetchall()])] def get_language(self, cursor, user, context): lang_obj = self.pool.get('ir.lang')