Skip to content
Snippets Groups Projects
Commit a6c8f476ad03 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Migrate the "Xbus Messages" debug menu item

parent 6fc67d56e9f3
Branches branch/11.0
No related tags found
No related merge requests found
Pipeline #11349 failed
......@@ -19,7 +19,7 @@
/* Add an "Xbus messages" link to open related messages from the debug menu.
*
* Base Odoo code:
* - addons/web/static/src/js/widgets/debug_manager.js
* - addons/web/static/src/js/tools/debug_manager_backend.js
*/
odoo.define('xbus_emitter.debug_manager_xbus', function(require) {
......@@ -32,12 +32,7 @@
/* Add an "Xbus messages" link to open related messages from the debug menu. */
open_xbus_messages: function() {
var view = this._active_view;
if (view === undefined) {
return;
}
var controller = view.controller;
var controller = this._controller;
if (controller === undefined) {
return;
}
......
......@@ -2,7 +2,8 @@
<templates xml:space="preserve">
<!-- Add an "Xbus messages" link for single records
("Get metadata" only gets shown for single records). -->
("Get metadata" only gets shown for single records).
Base view ref: addons/web/static/src/xml/debug.xml. -->
<t t-extend="WebClient.DebugManager.View">
<t t-jquery="a[data-action='get_metadata']:parent" t-operation="after">
......@@ -6,7 +7,7 @@
<t t-extend="WebClient.DebugManager.View">
<t t-jquery="a[data-action='get_metadata']:parent" t-operation="after">
<li><a href="#" data-action="open_xbus_messages">Xbus Messages</a></li>
<a role="menuitem" href="#" data-action="open_xbus_messages" class="dropdown-item">Xbus Messages</a>
</t>
</t>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment