diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2019-02-13 13:00:19 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-06-17 11:34:17 +0000 |
| commit | 3cd7ed07a29c89ddf193796c20a812b9bf21e284 (patch) | |
| tree | 4d5ee7bbacec81a2254eb6f6f6a7cecf0a0d649c /addons/web/static/src | |
| parent | 3ab5612e4f5ec64ffa4a9b7cbf925af11a79a7fd (diff) | |
[IMP] *: remove 'view_type' on window actions.
The old tree views don't really exist anymore, this odd pseudo-flag to
dispatch between "list" and "tree" tree views has no reason to remain.
Task 1937686
closes odoo/odoo#31243
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome/action_manager.js | 1 | ||||
| -rw-r--r-- | addons/web/static/src/js/report/report.js | 1 | ||||
| -rw-r--r-- | addons/web/static/src/js/views/pivot/pivot_controller.js | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/addons/web/static/src/js/chrome/action_manager.js b/addons/web/static/src/js/chrome/action_manager.js index 629ab031736..014aa918e54 100644 --- a/addons/web/static/src/js/chrome/action_manager.js +++ b/addons/web/static/src/js/chrome/action_manager.js @@ -923,7 +923,6 @@ var ActionManager = Widget.extend({ _onRedirect: function (ev) { this.do_action({ type:'ir.actions.act_window', - view_type: 'form', view_mode: 'form', res_model: ev.data.res_model, views: [[false, 'form']], diff --git a/addons/web/static/src/js/report/report.js b/addons/web/static/src/js/report/report.js index 9072966b19e..b696b48571d 100644 --- a/addons/web/static/src/js/report/report.js +++ b/addons/web/static/src/js/report/report.js @@ -24,7 +24,6 @@ $('[res-id][res-model][view-type]') ev.preventDefault(); var action = { 'type': 'ir.actions.act_window', - 'view_type': $(this).attr('view-type'), 'view_mode': $(this).attr('view-mode') || $(this).attr('view-type'), 'res_id': Number($(this).attr('res-id')), 'res_model': $(this).attr('res-model'), diff --git a/addons/web/static/src/js/views/pivot/pivot_controller.js b/addons/web/static/src/js/views/pivot/pivot_controller.js index ac48ab769ff..3d996d21edf 100644 --- a/addons/web/static/src/js/views/pivot/pivot_controller.js +++ b/addons/web/static/src/js/views/pivot/pivot_controller.js @@ -277,7 +277,6 @@ var PivotController = AbstractController.extend({ name: this.title, res_model: this.modelName, views: this.views, - view_type: 'list', view_mode: 'list', target: 'current', context: context, |
