[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
This commit is contained in:
Lucas Perais (lpe)
2018-04-04 09:45:54 +02:00
parent f1a884e046
commit 26347fc759
@@ -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,