summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/abstract_controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/views/abstract_controller.js')
-rw-r--r--addons/web/static/src/js/views/abstract_controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/abstract_controller.js b/addons/web/static/src/js/views/abstract_controller.js
index ba00b4dbab7..b5d7c8fe8b3 100644
--- a/addons/web/static/src/js/views/abstract_controller.js
+++ b/addons/web/static/src/js/views/abstract_controller.js
@@ -104,6 +104,9 @@ var AbstractController = mvc.Controller.extend(ActionMixin, {
* Called each time the controller is detached from the DOM.
*/
on_detach_callback: function () {
+ if (this._controlPanel) {
+ this._controlPanel.on_detach_callback();
+ }
this.renderer.on_detach_callback();
},