diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-05-06 14:28:40 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-05-06 14:28:40 +0200 |
| commit | f6e33eca1388c5aaa96086a8d14b512084ed138e (patch) | |
| tree | 33807a01c39ca6e9ce8b6bbf0e921e33342f6d63 /addons/web/static/src | |
| parent | c033b660e8f6d7863ca51852cbb059f710eaca26 (diff) | |
[IMP] do_warn on ClientAction not found
bzr revid: fme@openerp.com-20140506122840-01b9xtewp4wcv42g
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index b9015f6b311..753d52d497a 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -451,6 +451,9 @@ instance.web.ActionManager = instance.web.Widget.extend({ ir_actions_client: function (action, options) { var self = this; var ClientWidget = instance.web.client_actions.get_object(action.tag); + if (!ClientWidget) { + return self.do_warn("Action Error", "Could not find client action '" + action.tag + "'."); + } if (!(ClientWidget.prototype instanceof instance.web.Widget)) { var next; |
