[FIX] base: fix oversight

The bug triggers during an upgrade of base (tested while migrating from
12.0 to master).

Introduced at 074074e570

closes odoo/odoo#35153

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Adrian Torres
2019-07-24 14:52:03 +00:00
parent 46843ee488
commit bc99500799
+1 -1
View File
@@ -1068,7 +1068,7 @@ class IrModelConstraint(models.Model):
SET write_date=now() AT TIME ZONE 'UTC',
write_uid=%s, type=%s, definition=%s, message=%s
WHERE id=%s"""
cr.execute(query, (type, self.env.uid, definition, message, cons_id))
cr.execute(query, (self.env.uid, type, definition, message, cons_id))
return self.browse(cons_id)
def _reflect_model(self, model):