summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2019-01-14 14:38:15 +0000
committerAdrian Torres <adt@odoo.com>2019-02-01 10:19:28 +0000
commit86ef5d1a46e80474f9cb7ca3cf9c3e1c77eedc12 (patch)
tree4b79e4497f07d87dd4e01d9d07466349881f6295 /addons/web/static/src/js/views/basic/basic_controller.js
parent186b1c09ccd8092c8ec5c43ae1e70fa91caeb5e0 (diff)
[FIX] ir_model: properly delete m2m whose comodel is being deleted
Before this patch, if an m2m's relation field pointed to a model that was to be deleted, the deletion of the aforementioned model wouldn't trigger the m2m's deletion, which would lead to the registry crashing. With this patch, whenever an ir.model is being unlinked, a check is performed to verify that no other fields (m2m or otherwise) have this model as a comodel, and if they do, they are unlinked as well. closes odoo/odoo#30230
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions