[FIX] web: make sure web client uses view_id if provided
when there is a view_id parameter in the url, the web client should honor that request, instead of using default view
This commit is contained in:
@@ -500,7 +500,7 @@ var ActionManager = Widget.extend({
|
||||
res_model: state.model,
|
||||
res_id: state.id,
|
||||
type: 'ir.actions.act_window',
|
||||
views: [[false, 'form']]
|
||||
views: [[_.isNumber(state.view_id) ? state.view_id : false, 'form']]
|
||||
};
|
||||
action_loaded = this.do_action(action);
|
||||
} else if (state.sa) {
|
||||
|
||||
Reference in New Issue
Block a user