summaryrefslogtreecommitdiff
path: root/odoo/modules/loading.py
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-07-03 11:11:25 +0200
committerGitHub <noreply@github.com>2018-07-03 11:11:25 +0200
commitbca2926b013733162355879ec4190e327c1a966a (patch)
treec8e491fb1ca943835f9eb8d471528e52839bf477 /odoo/modules/loading.py
parent44bd29fc844cdb21b879144fda4dbb94c4afcd2c (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