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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user