[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:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user