From a5f0198f9c8feb814b5a80f6817ec95b118fc2b7 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 10 Jun 2015 14:23:03 +0200 Subject: [PATCH] Revert "[FIX] web: default loaded view on direct access/refresh" This reverts commit 291eb111b39f6648c2096e8eb1f8f13ac6202ee8. By putting into the flags object the default_view stored into the context (i.e. the one written in the url), it happens that a View Manager tries to open a view which is not available. For instance, Sales > Sales Teams. Then refresh the page. As we are in a Kanban view, the view_type = Kanban is stored in the context. Then click on Quotations in a Kanban card. It doesn't work because the ViewManager tries to open the Kanban View of the Quotations which doesn't exist. --- addons/web/static/src/js/views.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 20978ca8729..73cb4e1161c 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -347,8 +347,7 @@ instance.web.ActionManager = instance.web.Widget.extend({ pager : (!popup || !form) && !inline, display_title : !popup, headless: (popup || inline) && form, - search_disable_custom_filters: action.context && action.context.search_disable_custom_filters, - default_view: action.context && action.context.params && action.context.params.view_type + search_disable_custom_filters: action.context && action.context.search_disable_custom_filters }); action.menu_id = options.action_menu_id; action.context.params = _.extend({ 'action' : action.id }, action.context.params);