Skip to content

Commit

Permalink
[MIG] queue_job_batch, test_queue_job_batch: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amh-mw committed Mar 7, 2024
1 parent 48da391 commit 8005035
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 26 deletions.
2 changes: 1 addition & 1 deletion queue_job_batch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Job Queue Batch
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:42313b24f8d9b948f49b0c58d10b3db3a2c5d2f32cb52b15281d899f9676cb54
!! source digest: sha256:c5574ed970aadb78698310bf6c89d01bce74cce7143cfb5503d90bb2cba52839
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
9 changes: 7 additions & 2 deletions queue_job_batch/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Job Queue Batch",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue",
"license": "AGPL-3",
Expand All @@ -26,6 +26,11 @@
# views
"views/queue_job_views.xml",
"views/queue_job_batch_views.xml",
"views/assets_backend.xml",
],
"assets": {
"web.assets_backend": [
"queue_job_batch/static/src/js/systray.js",
"queue_job_batch/static/src/scss/systray.scss",
],
},
}
5 changes: 3 additions & 2 deletions queue_job_batch/models/queue_job_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ def set_read(self):
res = self.write({"is_read": True})
notifications = []
channel = "queue.job.batch"
notifications.append([channel, {}])
self.env["bus.bus"].sendmany(notifications)
notification_type = "is_read"
notifications.append([channel, notification_type, {}])
self.env["bus.bus"]._sendmany(notifications)
return res

@api.model
Expand Down
2 changes: 1 addition & 1 deletion queue_job_batch/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Job Queue Batch</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:42313b24f8d9b948f49b0c58d10b3db3a2c5d2f32cb52b15281d899f9676cb54
!! source digest: sha256:c5574ed970aadb78698310bf6c89d01bce74cce7143cfb5503d90bb2cba52839
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/queue/tree/15.0/queue_job_batch"><img alt="OCA/queue" src="https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/queue-15-0/queue-15-0-queue_job_batch"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/queue&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This addon adds an a grouper for queue jobs.</p>
Expand Down
16 changes: 0 additions & 16 deletions queue_job_batch/views/assets_backend.xml

This file was deleted.

2 changes: 1 addition & 1 deletion queue_job_batch/views/queue_job_batch_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<field name="name">queue.job.batch.tree</field>
<field name="model">queue.job.batch</field>
<field name="arch" type="xml">
<tree string="Job Batches" create="false" delete="false">
<tree create="false" delete="false">
<field name="name" />
<field name="job_count" invisible="1" />
<field
Expand Down
2 changes: 1 addition & 1 deletion test_queue_job_batch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Test Job Queue Batch
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:33931ef4a53058258cd38fe4cfc7b4850d2f6c556a719514e3a1c3c23915dc31
!! source digest: sha256:64220ab4fcbcae233c9e61c22e7fa90d88b1d494c301f55cb3834653fe7a06e5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion test_queue_job_batch/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Test Job Queue Batch",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue",
"license": "AGPL-3",
Expand Down
2 changes: 1 addition & 1 deletion test_queue_job_batch/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Test Job Queue Batch</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:33931ef4a53058258cd38fe4cfc7b4850d2f6c556a719514e3a1c3c23915dc31
!! source digest: sha256:64220ab4fcbcae233c9e61c22e7fa90d88b1d494c301f55cb3834653fe7a06e5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/queue/tree/15.0/test_queue_job_batch"><img alt="OCA/queue" src="https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/queue-15-0/queue-15-0-test_queue_job_batch"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/queue&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This addon is used to test the queue job batch functionality</p>
Expand Down

0 comments on commit 8005035

Please sign in to comment.