Skip to content
Snippets Groups Projects
Commit 85c3fd8b authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] core: do not mark `ir.model*` unique fields as modified


These field combinations [1] are actually secondary keys. They are
unique and represent the record identity.

Marking them as modified had a nasty side-effect: on some models, there
is a m2o to an ir.model and a stored related to ir.model/model that will
be recomputed at each model reflection. This can take some time on big
tables.
Moreover, some other stored fields may depend on those ir.model/model
related store, which adds useless time lost at recomputing unchanged
values.

[1] ir.model/model, ir.model.fields/{model,name} and
    ir.model.selection/{field_id,name}

closes odoo/odoo#54126

X-original-commit: db013a01ca4e10640ac33a59466c9cb5746e3698
Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
parent 59463f8b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment