Revert "[FIX] web: default loaded view on direct access/refresh"

This reverts commit 291eb111b3.

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.
This commit is contained in:
Aaron Bohy
2015-06-10 15:27:59 +02:00
parent 49973b161a
commit a5f0198f9c
+1 -2
View File
@@ -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);