diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-05-15 16:06:16 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-05-15 16:08:18 +0200 |
| commit | a8a9fe821a828e9f7d64c53a7868df8020c6b2e3 (patch) | |
| tree | 96ca1226c2bce9e490adc1257fa95131c196793f /addons/web/static/src/js | |
| parent | 50a043d979b126c0ac87b2f3111f2c8293cd5c04 (diff) | |
[FIX] Web: ControlPanel: hide ControlPanel on breadcrumb click
if the inner widget doesn't use it.
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/action_manager.js | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |
