Fix search_model on ir.translation to return a list for issue1542

This commit is contained in:
Cédric Krier committed 2010-04-28 19:30:16 +02:00
1 parent e9e1721cdf
commit 55288155f5
1 file changed
+1 -1
+1 -1
View File
@@ -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')