diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-12-10 17:28:02 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-12-11 12:34:38 +0100 |
| commit | 79ab4c4c60a0387d9c54545f2d96bcc3bf1d22e9 (patch) | |
| tree | 29c1525d7f83c5235c53a475b01947d0229f0ea0 /addons/web/static/src | |
| parent | 5339665806914bb469aea1bb4b66424d4d27a515 (diff) | |
[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
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/action_manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js index b5353a8e7d2..4110e45ba83 100644 --- a/addons/web/static/src/js/action_manager.js +++ b/addons/web/static/src/js/action_manager.js @@ -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) { |
