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
f69ee1c9
Commit
f69ee1c9
authored
2 years ago
by
Etienne Ferriere
Browse files
Options
Downloads
Patches
Plain Diff
Fix send_header_body
parent
b3d8397e
No related branches found
No related tags found
1 merge request
!24
Add the possibility to send a header and a body in Xbus emitter jobs.
Pipeline
#52974
passed
2 years ago
Stage: test
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS.rst
+7
-1
7 additions, 1 deletion
NEWS.rst
__openerp__.py
+1
-1
1 addition, 1 deletion
__openerp__.py
model/xbus_emitter.py
+13
-6
13 additions, 6 deletions
model/xbus_emitter.py
with
21 additions
and
8 deletions
NEWS.rst
+
7
−
1
View file @
f69ee1c9
Changelog
=========
7.0.1.1.1 (UNRELEASED)
----------------------
When a header and a body are requested to be injected in a Xbus emitter job,
these data must not be inserted in the sent items, but in the job creation
values.
7.0.1.1.0 (2023-03-22)
----------------------
Add the possibility to send a header and a body in Xbus emitter jobs.
...
...
@@ -4,9 +11,8 @@
7.0.1.1.0 (2023-03-22)
----------------------
Add the possibility to send a header and a body in Xbus emitter jobs.
7.0.1.0.0 (2016-12-15)
----------------------
...
...
This diff is collapsed.
Click to expand it.
__openerp__.py
+
1
−
1
View file @
f69ee1c9
...
...
@@ -38,7 +38,7 @@
$ pip install zmq_rpc
"""
,
"
version
"
:
"
7.0.1.1.
0
"
,
"
version
"
:
"
7.0.1.1.
1
"
,
"
category
"
:
"
Technical
"
,
"
author
"
:
"
XCG Consulting
"
,
"
website
"
:
"
https://orbeet.io/
"
,
...
...
This diff is collapsed.
Click to expand it.
model/xbus_emitter.py
+
13
−
6
View file @
f69ee1c9
...
...
@@ -197,7 +197,8 @@
if
delayed
:
# Just add to the job queue.
job_values
=
context
.
get
(
"
job_values
"
,
{})
emitter_job_id
=
self
.
pool
[
"
xbus.emitter.job
"
].
create
(
cr
,
uid
,
...
...
@@ -200,12 +201,15 @@
emitter_job_id
=
self
.
pool
[
"
xbus.emitter.job
"
].
create
(
cr
,
uid
,
{
"
emitter_id
"
:
emitter
.
id
,
"
event_type
"
:
event_type
,
"
items
"
:
json
.
dumps
(
items
),
},
dict
(
{
"
emitter_id
"
:
emitter
.
id
,
"
event_type
"
:
event_type
,
"
items
"
:
json
.
dumps
(
items
),
},
**
job_values
),
context
=
context
,
)
...
...
@@ -330,8 +334,11 @@
"
body
"
:
body
,
"
chunking
"
:
SELECTION_CHUNKING_AUTO
,
}
context
[
"
job_values
"
]
=
job_values
return
self
.
send_items
(
cr
,
uid
,
ids
,
event_type
,
...
...
@@ -333,9 +340,9 @@
return
self
.
send_items
(
cr
,
uid
,
ids
,
event_type
,
job_values
,
{}
,
delayed
=
delayed
,
context
=
context
,
)
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