diff --git a/addons/web/static/src/js/chrome/action_manager.js b/addons/web/static/src/js/chrome/action_manager.js index 746460bdc4f..d049abaa8ec 100644 --- a/addons/web/static/src/js/chrome/action_manager.js +++ b/addons/web/static/src/js/chrome/action_manager.js @@ -420,9 +420,6 @@ var ActionManager = Widget.extend({ console.error("Could not find client action " + action.tag, action); return Promise.reject(); } - if (!(ClientAction.prototype instanceof AbstractAction)) { - console.warn('The client action ' + action.tag + ' should be an instance of AbstractAction!'); - } if (!(ClientAction.prototype instanceof Widget)) { // the client action might be a function, which is executed and // whose returned value might be another action to execute @@ -432,6 +429,9 @@ var ActionManager = Widget.extend({ } return Promise.resolve(); } + if (!(ClientAction.prototype instanceof AbstractAction)) { + console.warn('The client action ' + action.tag + ' should be an instance of AbstractAction!'); + } var controllerID = _.uniqueId('controller_');