summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-04-03 14:49:02 +0200
committerLucas Perais (lpe) <lpe@odoo.com>2018-04-04 09:45:54 +0200
commit26347fc7594ff96f4e26086dab0c636338de56cc (patch)
tree13644bd5e88cc8ca9a2c1d524293b6c165224bfe /addons/web/static/src/js/widgets
parentf1a884e046dda1593fc4baeeeb9b27bd668936db (diff)
[FIX] web: debug manager: replace tree mode by list
- Open in debug mode the 'beetle' - Click on open view - select a Tree view in the list Before this commit: A traceback appears This was because while the Tree view per se has been discontinued the mode 'tree' of an action must be supported Which was not the case for this particular widget After this commit: the list view asked for appears OPW 1833008 closes #23963 closes #24005
Diffstat (limited to 'addons/web/static/src/js/widgets')
-rw-r--r--addons/web/static/src/js/widgets/debug_manager.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/widgets/debug_manager.js b/addons/web/static/src/js/widgets/debug_manager.js
index e70d901caef..1396a12e57d 100644
--- a/addons/web/static/src/js/widgets/debug_manager.js
+++ b/addons/web/static/src/js/widgets/debug_manager.js
@@ -178,6 +178,7 @@ var DebugManager = Widget.extend({
})
.then(function (views) {
var view = views[0];
+ view.type = view.type === 'tree' ? 'list' : view.type; // ignore tree view
self.do_action({
type: 'ir.actions.act_window',
name: view.name,