diff options
| author | Damien Bouvy <dbo@odoo.com> | 2020-01-30 15:32:13 +0000 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2020-01-31 12:06:46 +0000 |
| commit | c643be7679921026a87ff307d57b38c174ec439e (patch) | |
| tree | cb8ef482293113e95050e92ecfdc3cae08ae726b /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | eaccecd6cc2e21753240b44a42a2040d82de0fe1 (diff) | |
[IMP] base: ensure correct inheritance chain in registry
When removing a custom model, it remained listed in the base classes
(normally `base` and also possibly a list of mixins; e.g. `mail.thread`
or `mail.activity.mixin`) list of inheriting classes, possibly causing a
crash when trying to reload the registry.
This commit ensures that any custom model is removed from its parent
class `_inherit_children` set; it will be re-added automatically during
the call to `_build_model` if the custom model still exists.
Co-Authored-By: Raphaƫl Collet <rco@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
