diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2018-10-08 14:47:38 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2018-10-09 13:14:47 +0000 |
| commit | f3bd4e425f7cb635d1dfd0b2681d03742a9b0e71 (patch) | |
| tree | 492ca0d05a208c3a4a561cfc201d9d264b8692ef /odoo/models.py | |
| parent | b83ed5332553c21d030081374d497f3121950ff3 (diff) | |
[FIX] models.py: modified field with uppercase
In 7f29b31cf the modifed has been improved but there was a typo if a
column contained an uppercase letter (which happen easily with random
field name in Odoo Studio).
opw-1890248
closes #27546
Diffstat (limited to 'odoo/models.py')
| -rw-r--r-- | odoo/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/models.py b/odoo/models.py index 81621725a34..483c79521fe 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -5141,7 +5141,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): f = Model._fields.get(path) if f and f.store and f.type not in ('one2many', 'many2many'): # path is direct (not dotted), stored, and inline -> optimise to raw sql - self.env.cr.execute("SELECT id FROM %s WHERE %s in %%s" % (Model._table, path), [tuple(self.ids)]) + self.env.cr.execute('SELECT id FROM "%s" WHERE "%s" in %%s' % (Model._table, path), [tuple(self.ids)]) target0 = Model.browse(i for [i] in self.env.cr.fetchall()) else: env = self.env(user=SUPERUSER_ID, context={'active_test': False}) |
