Search in translation only for char and text for issue621

This commit is contained in:
Cédric Krier
2008-11-27 15:29:15 +01:00
parent ec23c57d3a
commit f3101c88fd
+1 -1
View File
@@ -2630,7 +2630,7 @@ class ORM(object):
args[i] += (table,)
i += 1
else:
if field.translate:
if field.translate and field._type in ('char', 'text'):
exprs = ['%s', '%s']
if args[i][1] in ('like', 'ilike', 'not like', 'not ilike'):
exprs = ['%% %s%%', '%s%%']