summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2017-01-18 11:17:56 +0100
committerRaphael Collet <rco@openerp.com>2017-01-18 13:32:56 +0100
commit7c5291ff5c320f08502518402b0a8c4365584e0c (patch)
treeaf0d26e1f83c7a8efd598ffefb3ab9778b51618b /addons/web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less
parente4f6bde41412a40da4bd07582dde32991e05fd7f (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