[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:
Géry Debongnie
2015-12-11 12:34:38 +01:00
parent 5339665806
commit 79ab4c4c60
+1 -1
View File
@@ -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) {