summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2019-02-13 13:00:19 +0000
committerXavier Morel <xmo@odoo.com>2019-06-17 11:34:17 +0000
commit3cd7ed07a29c89ddf193796c20a812b9bf21e284 (patch)
tree4d5ee7bbacec81a2254eb6f6f6a7cecf0a0d649c /addons/web/static
parent3ab5612e4f5ec64ffa4a9b7cbf925af11a79a7fd (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')
-rw-r--r--addons/web/static/src/js/chrome/action_manager.js1
-rw-r--r--addons/web/static/src/js/report/report.js1
-rw-r--r--addons/web/static/src/js/views/pivot/pivot_controller.js1
-rw-r--r--addons/web/static/tests/views/form_tests.js1
-rw-r--r--addons/web/static/tests/views/pivot_tests.js1
5 files changed, 0 insertions, 5 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,
diff --git a/addons/web/static/tests/views/form_tests.js b/addons/web/static/tests/views/form_tests.js
index aaa1b1cb3aa..df207d34a47 100644
--- a/addons/web/static/tests/views/form_tests.js
+++ b/addons/web/static/tests/views/form_tests.js
@@ -468,7 +468,6 @@ QUnit.module('Views', {
target: 'current',
res_model: args.model,
context: args.kwargs.context,
- 'view_type': 'form',
'view_mode': 'form',
'views': [[false, 'form']],
});
diff --git a/addons/web/static/tests/views/pivot_tests.js b/addons/web/static/tests/views/pivot_tests.js
index 975f68551fa..8434fd5cfb7 100644
--- a/addons/web/static/tests/views/pivot_tests.js
+++ b/addons/web/static/tests/views/pivot_tests.js
@@ -247,7 +247,6 @@ QUnit.module('Views', {
target: 'current',
type: 'ir.actions.act_window',
view_mode: 'list',
- view_type: 'list',
views: [[false, 'list'], [2, 'form']],
}, "should trigger do_action with the correct args");
},