diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-04-26 13:43:13 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-04-26 16:34:47 +0200 |
| commit | 21462f4141ea75fb50f6e111a07c3a2c0f2c6f2c (patch) | |
| tree | bef706f5c22d81cc70adac7d2043b4990fafbaf2 /addons/web/static/src/js | |
| parent | d99c68ff39d7d55498dcc850d5ed4d7ed25f0dd0 (diff) | |
[FIX] web: view's do_execute_action with multiple input ids
Commit of xmo that has been lost by the unduplication of webclients (6768bbfc).
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/framework/view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/view.js b/addons/web/static/src/js/framework/view.js index d2cc73a4b71..9b3d1751570 100644 --- a/addons/web/static/src/js/framework/view.js +++ b/addons/web/static/src/js/framework/view.js @@ -106,7 +106,7 @@ var View = Widget.extend({ if (action_data.special === 'cancel') { return handler({"type":"ir.actions.act_window_close"}); } else if (action_data.type === "object") { - var args = [[record_id]]; + var args = record_id ? [[record_id]] : [dataset.ids]; if (action_data.args) { try { // Warning: quotes and double quotes problem due to json and xml clash |
