diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-11-08 14:20:07 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-11-08 14:20:07 +0100 |
| commit | c19f54650594211e4af7e68214de4f118686b8e1 (patch) | |
| tree | ae27c8fb401e8159bad45781a8e7b0ab20235b35 /addons/web/static/src/js/view_manager.js | |
| parent | d32970830ea938bead60e8368a3389f9d20853df (diff) | |
| parent | b7957550010e0cecc1dbefcbc122d9a49f50ae1d (diff) | |
[MERGE] forward port branch 9.0 up to b795755
Diffstat (limited to 'addons/web/static/src/js/view_manager.js')
| -rw-r--r-- | addons/web/static/src/js/view_manager.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_manager.js b/addons/web/static/src/js/view_manager.js index ec7ce95313a..dd730b62f4e 100644 --- a/addons/web/static/src/js/view_manager.js +++ b/addons/web/static/src/js/view_manager.js @@ -463,6 +463,14 @@ var ViewManager = Widget.extend(ControlPanelMixin, { } this.active_view.controller.do_load_state(state, warm); }, + destroy: function () { + if (this.control_elements) { + if (this.control_elements.$switch_buttons) { + this.control_elements.$switch_buttons.off(); + } + } + return this._super.apply(this, arguments); + }, }); return ViewManager; |
