[MERGE] forward port of branch saas-2 up to revid 5025 chs@openerp.com-20140403084808-slnj7uis17kwi9js

bzr revid: chs@openerp.com-20140403085050-0blat5jm87j9gkbb
This commit is contained in:
Christophe Simonis 2014-04-03 10:50:50 +02:00
commit 4978cf4293
1 changed files with 1 additions and 1 deletions

View File

@ -1038,7 +1038,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