From 92f31b10e43ad6c265a223ae22cb3c3a0feb0c8a Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 18 Aug 2016 11:00:02 +0200 Subject: [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. --- addons/website/static/src/js/website.editor.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'addons/website/static/src/js/website.editor.js') 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(); }); -- cgit v1.2.3