From 59d1f9b564f1a4cec8a061e148725a3a9f7ac853 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 30 Jan 2017 18:14:42 +0100 Subject: [PATCH] [IMP] core: only mark updated fields as modified at model reflection `model` field of `ir.model` may be used as related stored field. Marking it as modified force recomputation of these, even no change occurs (by definition). --- odoo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/models.py b/odoo/models.py index 29e65110018..9e2a386a5d3 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -290,7 +290,7 @@ class BaseModel(object): VALUES (%(model)s, %(name)s, %(info)s, %(state)s, %(transient)s) RETURNING id """, params) model = self.env['ir.model'].browse(cr.fetchone()[0]) - self._context['todo'].append((10, model.modified, [list(params)])) + self._context['todo'].append((10, model.modified, [['name', 'info', 'transient']])) if self._module == self._context.get('module'): # self._module is the name of the module that last extended self