[FIX] web: DebugManager: open view: search and qweb views

can't be opened that way.

For now, only views that can be opened with a view manager are
supported, i.e. views like form, list, kanban, graph...

So this fix filters out the views of type qweb and search from the
list.
This commit is contained in:
Aaron Bohy
2017-05-11 08:52:24 +02:00
parent c82e1f44ae
commit 4e8e546ed7
@@ -180,6 +180,7 @@ var DebugManager = Widget.extend({
res_model: 'ir.ui.view',
title: _t('Select a view'),
disable_multiple_selection: true,
domain: [['type', '!=', 'qweb'], ['type', '!=', 'search']],
on_selected: function (element_ids) {
new Model('ir.ui.view')
.query(['name', 'model', 'type'])