diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-02-02 10:52:44 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-02-02 10:55:06 +0100 |
| commit | 9fe39ee52abea7e913972148e93fa2da4e61ddeb (patch) | |
| tree | 045d5dd4211f50611215a8308ef31d8ee7514404 /addons/web/static/src | |
| parent | 78d4822abbec54f4c97e27fc1921da1b8445453c (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
