diff options
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(); |
