diff options
| author | Adrian Torres <adt@odoo.com> | 2018-07-03 11:11:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-03 11:11:25 +0200 |
| commit | bca2926b013733162355879ec4190e327c1a966a (patch) | |
| tree | c8e491fb1ca943835f9eb8d471528e52839bf477 /odoo/modules/loading.py | |
| parent | 44bd29fc844cdb21b879144fda4dbb94c4afcd2c (diff) | |
[FIX] base: properly unlink child views
Before this commit:
* Install module A
* Edit a view from module A, add a custom field
* Uninstall module A
* Reinstall module A
* Try to access the module A's previously modified view
-> Can't access the view, or even sometimes the app at all.
Cause:
When uninstalling module A, the custom field added to module A's is
properly unlinked, however the custom/studio view is not unlinked, therefore
the view references a field that no longer exists, when accessing the
view it will obviously crash (sometimes the traceback is not even
displayed to the user!).
Solution:
Emulate an ondelete cascade for child views only when in uninstall mode.
Diffstat (limited to 'odoo/modules/loading.py')
0 files changed, 0 insertions, 0 deletions
