[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).
This commit is contained in:
Christophe Simonis
2017-01-31 13:56:28 +01:00
parent c196b55d61
commit 59d1f9b564
+1 -1
View File
@@ -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