[FIX] expression: do not double quote column names

bzr revid: chs@openerp.com-20140403084524-9rb174osjrbmhgwc
This commit is contained in:
Christophe Simonis 2014-04-03 10:45:24 +02:00
parent 4612b417af
commit 6fca27626a
1 changed files with 1 additions and 1 deletions

View File

@ -1039,7 +1039,7 @@ class expression(object):
if self.has_unaccent and sql_operator.endswith('like'):
assert isinstance(right, basestring)
trans_left = 'unaccent(value)'
left = 'unaccent("%s")' % (left,)
left = 'unaccent(%s)' % (left,)
instr = 'unaccent(%s)'
elif sql_operator == 'in':
# params will be flatten by to_sql() => expand the placeholders