projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4612b41
)
[FIX] expression: do not double quote column names
author
Christophe Simonis
<chs@openerp.com>
Thu, 3 Apr 2014 08:45:24 +0000
(10:45 +0200)
committer
Christophe Simonis
<chs@openerp.com>
Thu, 3 Apr 2014 08:45:24 +0000
(10:45 +0200)
bzr revid: chs@openerp.com-
20140403084524
-9rb174osjrbmhgwc
openerp/osv/expression.py
patch
|
blob
|
history
diff --git
a/openerp/osv/expression.py
b/openerp/osv/expression.py
index
9c70c0f
..
93e28dc
100644
(file)
--- a/
openerp/osv/expression.py
+++ b/
openerp/osv/expression.py
@@
-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