From 9fe39ee52abea7e913972148e93fa2da4e61ddeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 2 Feb 2015 10:52:44 +0100 Subject: [PATCH] [FIX] web: correctly use function actions actions can be defined by a function, but the action manager was changed to try to instantiate it instead of simply executing it. --- addons/web/static/src/js/views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index d1b9040de5e..f5f16b201bc 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -446,7 +446,7 @@ instance.web.ActionManager = instance.web.Widget.extend({ if (!(ClientWidget.prototype instanceof instance.web.Widget)) { var next; - if ((next = new ClientWidget(this, action))) { + if ((next = ClientWidget(this, action))) { return this.do_action(next, options); } return $.when();