From a8a9fe821a828e9f7d64c53a7868df8020c6b2e3 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 15 May 2015 16:06:16 +0200 Subject: [PATCH] [FIX] Web: ControlPanel: hide ControlPanel on breadcrumb click if the inner widget doesn't use it. --- addons/web/static/src/js/action_manager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js index 4395c02ddce..7b9cfa9cbf8 100644 --- a/addons/web/static/src/js/action_manager.js +++ b/addons/web/static/src/js/action_manager.js @@ -276,6 +276,11 @@ var ActionManager = Widget.extend({ var action_index = this.action_stack.indexOf(action); this.clear_action_stack(this.action_stack.splice(action_index + 1)); + // Hide the ControlPanel if the widget doesn't use it + if (!this.inner_widget.need_control_panel) { + this.main_control_panel.do_hide(); + } + return action.restore(index); }, clear_action_stack: function(action_stack) {