summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-05-11 08:45:54 +0200
committerAaron Bohy <aab@odoo.com>2017-05-11 08:52:24 +0200
commit4e8e546ed73f1b7d758dddb2f3773a1b0360467b (patch)
treed1a4a965c26933b1abbaa696dbebd281fd37ddcf /addons/web/static/src
parentc82e1f44aecbdaca05a5ad391f148bd30c54fa50 (diff)
[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.
Diffstat (limited to 'addons/web/static/src')
-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 8d868ef2ea1..3ce949a6cc5 100644
--- a/addons/web/static/src/js/widgets/debug_manager.js
+++ b/addons/web/static/src/js/widgets/debug_manager.js
@@ -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'])