[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.
This commit is contained in:
Géry Debongnie
2015-02-02 10:55:06 +01:00
parent 78d4822abb
commit 9fe39ee52a
+1 -1
View File
@@ -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();