summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/tools/debug_manager_tests.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-09-03 15:01:46 +0200
committerAlexandre Kühn <aku@odoo.com>2018-09-03 17:04:45 +0200
commit017e71322b6b7f0c232f0d66ba659a5972fc3534 (patch)
treea6bbe236e4120f1e9170bcf94d405e1a8e843cc7 /addons/web/static/tests/tools/debug_manager_tests.js
parent6da3dafe94dc4f54b9696a1a34062d6d87415bde (diff)
[FIX] web: display view name in debug menu ('Edit View: X')
Revision on https://github.com/odoo/odoo/commit/f7fbe8adffb1ee585c8171f6c86d38145c11848d The commit above wrongly assumes that the object 'view' is an instance of the view class. As a result, the property `display_name` was undefined. This commit fixes the issue by letting the controller remember the name of the view in a similar was as the type of the view. That way, the name of the view can simply be retrieved from the instance of the controller class. Task-ID 1878254
Diffstat (limited to 'addons/web/static/tests/tools/debug_manager_tests.js')
-rw-r--r--addons/web/static/tests/tools/debug_manager_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/tools/debug_manager_tests.js b/addons/web/static/tests/tools/debug_manager_tests.js
index 27498400b2a..e861afc6546 100644
--- a/addons/web/static/tests/tools/debug_manager_tests.js
+++ b/addons/web/static/tests/tools/debug_manager_tests.js
@@ -52,10 +52,10 @@ QUnit.module('DebugManager', {}, function () {
view_id: 1,
},
type: "list",
- display_name: "List",
}],
};
var view = {
+ viewName: "List",
viewType: "list",
};
debugManager.update('action', action, view);