[IMP] do_warn on ClientAction not found

bzr revid: fme@openerp.com-20140506122840-01b9xtewp4wcv42g
This commit is contained in:
Fabien Meghazi 2014-05-06 14:28:40 +02:00
parent c033b660e8
commit f6e33eca13
1 changed files with 3 additions and 0 deletions

View File

@ -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;