diff options
| author | Raphael Collet <rco@odoo.com> | 2020-04-02 13:11:51 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-04-02 23:54:32 +0000 |
| commit | 46b7fb598498dfe8673268e82944488b741f5caa (patch) | |
| tree | 94d9289051fe5bf8dd1f5d3a4639ec749b6b7d0f /addons/test_website | |
| parent | 0f7d670434cd51e8f19609acd5f8bfae020575ea (diff) | |
[FIX] core: do not register classes when `_module` is falsy
The goal is to avoid a class from being added in the dictionary
`MetaModel.module_to_models`.
We use this feature in tests to prevent classes extending models from
triggering bugs when reloading the registry (for whatever reason).
X-original-commit: 12db61b787b2035bf0c1f2a68a24449d484744c8
Diffstat (limited to 'addons/test_website')
0 files changed, 0 insertions, 0 deletions
