From f32cdb5ccfcf17ccc51ba43aab299959ff45bf13 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Wed, 5 Dec 2018 11:17:04 +0100 Subject: [FIX] web: exclude orderedBy when changing action When activating a filter on a list view, the environment of the action contained a context with an orderedBy key which was then used by every controller and model in the various parallel flows, i.e. changing actions After this commit, we prevent it by excluding the key when executing an action OPW 1913190, 1914019 closes #29190 --- addons/web/static/src/js/chrome/action_manager_act_window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/chrome/action_manager_act_window.js') diff --git a/addons/web/static/src/js/chrome/action_manager_act_window.js b/addons/web/static/src/js/chrome/action_manager_act_window.js index c41123828f4..f644d8cc821 100644 --- a/addons/web/static/src/js/chrome/action_manager_act_window.js +++ b/addons/web/static/src/js/chrome/action_manager_act_window.js @@ -764,7 +764,7 @@ ActionManager.include({ _.object(_.reject(_.pairs(env.context), function (pair) { return pair[0].match('^(?:(?:default_|search_default_|show_).+|' + '.+_view_ref|group_by|group_by_no_leaf|active_id|' + - 'active_ids)$') !== null; + 'active_ids|orderedBy)$') !== null; })) ); ctx.add(actionData.context || {}); -- cgit v1.2.3