diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-02-12 18:03:27 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-03-20 16:18:35 +0100 |
| commit | 7aa08364200936883b62a8389a5da714d0a40d6b (patch) | |
| tree | 5c05fbb914d2dc531ed77ef1ea4700f11a406b84 /addons/web/static/src/js/web_client.js | |
| parent | 151c90743efd374e72bf1b18f5ae0c392a3811ac (diff) | |
[IMP] Web: views.js, view_editor.js: DebugManager
Creation of a widget for the DebugManager and move it from the ControlPanel
to the Systray.
Refactoring of the widget to improve/facilitate the way of adding
options in the DebugManager as the view_editor does.
Add a do_action() function in the WebClient that forwards the action to
the main ActionManager so that widget that are not in the scope of the
ActionManager (e.g. Menu) can performed actions as well.
Note: The DebugManager is currently in the Systray but it will finally be
moved to a dedicated spot above the ControlPanel.
Diffstat (limited to 'addons/web/static/src/js/web_client.js')
| -rw-r--r-- | addons/web/static/src/js/web_client.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/web/static/src/js/web_client.js b/addons/web/static/src/js/web_client.js index 4242559b1fb..1b99fddaef2 100644 --- a/addons/web/static/src/js/web_client.js +++ b/addons/web/static/src/js/web_client.js @@ -255,6 +255,13 @@ var WebClient = Widget.extend({ } }); }, + /** + * When do_action is performed on the WebClient, forward it to the main ActionManager + * This allows to widgets that are not inside the ActionManager to perform do_action + */ + do_action: function() { + this.action_manager.do_action.apply(this, arguments); + }, destroy_content: function() { _.each(_.clone(this.getChildren()), function(el) { el.destroy(); |
