Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Xbus emitter
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Xbus emitter
Commits
a6c8f476ad03
Commit
a6c8f476ad03
authored
4 years ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
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
4 years ago
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/src/js/debug_manager_xbus.js
+2
-7
2 additions, 7 deletions
static/src/js/debug_manager_xbus.js
static/src/xml/debug_manager.xml
+3
-2
3 additions, 2 deletions
static/src/xml/debug_manager.xml
with
5 additions
and
9 deletions
static/src/js/debug_manager_xbus.js
+
2
−
7
View file @
a6c8f476
...
...
@@ -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/
widget
s/debug_manager.js
* - addons/web/static/src/js/
tool
s/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
;
}
...
...
This diff is collapsed.
Click to expand it.
static/src/xml/debug_manager.xml
+
3
−
2
View file @
a6c8f476
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment