Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Xbus Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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 Common
Merge requests
!8
Update xbus envelope : Convert messages smart button to object type
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update xbus envelope : Convert messages smart button to object type
topic/16.0/2023-01952
into
branch/16.0
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
aronabencherif.diatta@xcg.africa
requested to merge
topic/16.0/2023-01952
into
branch/16.0
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
This is not an odoo task, just an enhancement to ticket
2023-01952
In order to display only messages related to the envoloppe
0
0
Merge request reports
Compare
branch/16.0
version 1
0ccb3d94
1 year ago
branch/16.0 (base)
and
latest version
latest version
c3cb15a8
1 commit,
1 year ago
version 1
0ccb3d94
1 commit,
1 year ago
3 files
+
14
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
models/xbus_envelope.py
+
10
−
0
Options
@@ -53,6 +53,16 @@
for
record
in
self
:
record
.
message_count
=
len
(
record
.
message_ids
)
# Action to display only messages coming from this envelope
def
action_open_message
(
self
):
action
=
self
.
env
[
"
ir.actions.actions
"
].
_for_xml_id
(
"
xbus_common.xbus_message_action
"
)
action
[
"
context
"
]
=
{
"
default_envelope_id
"
:
self
.
id
}
# for message creations
action
[
"
domain
"
]
=
[(
"
envelope_id
"
,
"
=
"
,
self
.
id
)]
return
action
def
init
(
self
):
super
().
init
()
self
.
env
.
cr
.
execute
(
Loading