diff options
| author | Raphael Collet <rco@openerp.com> | 2017-01-18 11:17:56 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2017-01-18 13:32:56 +0100 |
| commit | 7c5291ff5c320f08502518402b0a8c4365584e0c (patch) | |
| tree | af0d26e1f83c7a8efd598ffefb3ab9778b51618b /addons/web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less | |
| parent | e4f6bde41412a40da4bd07582dde32991e05fd7f (diff) | |
[FIX] models: avoid creating XML ids for models that have not been extended
Assume module M extends model `base`. Upon installing M, all models in the
registry are impacted by the extension, so their `_auto_init` method is
invoked. This currently creates an XML id `M.model_X` for every model X,
including the custom models created before installing M. Now, if we deinstall
module M, all those custom models will be removed, as they have only one XML
id, namely the one introduced by M.
Prevent the creation of XML ids for the children of an extended model to avoid
this bug. Note that if the model extension adds a field, every instance of
that field in children models will have an XML id associated to module M.
Diffstat (limited to 'addons/web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less')
0 files changed, 0 insertions, 0 deletions
