summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-12-05 11:17:04 +0100
committerLucas Perais (lpe) <lpe@odoo.com>2018-12-05 14:21:44 +0100
commitf32cdb5ccfcf17ccc51ba43aab299959ff45bf13 (patch)
treed87756e8a32f88b18e803608621e390e792a712b /addons/web/static/src/js
parentd4c65a7edee8ebe3c5b27d6eea42ebc119fbe085 (diff)
[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
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/chrome/action_manager_act_window.js2
1 files changed, 1 insertions, 1 deletions
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 || {});