summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-08-18 11:00:02 +0200
committerRaphael Collet <rco@openerp.com>2016-08-31 17:21:57 +0200
commit92f31b10e43ad6c265a223ae22cb3c3a0feb0c8a (patch)
tree9eb8d1572a8c48d9894a7fb5af9a634cf20e6cd1 /addons/website/static/src/js/website.editor.js
parentb58beee4687bac1f4e8bc1fa452653c9e8e1e871 (diff)
[FIX] website: pass `ids` as a positional argument
For the sake of simplicity, the method adapter `call_kw_multi` does not look up for `ids` in keyword arguments, instead it expects it in positional arguments.
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index b62b6c2e6ac..42bebea65ba 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -95,11 +95,8 @@ website.TopBarCustomize = Widget.extend({
return ajax.jsonRpc('/web/dataset/call_kw', 'call', {
model: 'ir.ui.view',
method: 'toggle',
- args: [],
- kwargs: {
- ids: [parseInt(view_id, 10)],
- context: base.get_context(),
- }
+ args: [[parseInt(view_id, 10)]],
+ kwargs: {context: base.get_context()}
}).then(function () {
window.location.reload();
});