From b404216b44655fd7fb0f1ed3c9d5c01d46a90ffb Mon Sep 17 00:00:00 2001 From: Youssef AbouEgla Date: Mon, 20 Apr 2026 18:58:51 +0200 Subject: [PATCH 1/2] migrate queue_job_subscribe to 19.0 --- .pre-commit-config.yaml | 1 - README.md | 2 +- queue_job_subscribe/README.rst | 12 ++++++------ queue_job_subscribe/__manifest__.py | 5 +++-- queue_job_subscribe/i18n/queue_job_subscribe.pot | 2 +- queue_job_subscribe/static/description/index.html | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ce61f41c59..987d0e0dd6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,6 @@ exclude: | # NOT INSTALLABLE ADDONS ^queue_job_cron/| ^queue_job_cron_jobrunner/| - ^queue_job_subscribe/| # END NOT INSTALLABLE ADDONS # Files and folders generated by bots, to avoid loops ^setup/|/static/description/index\.html$| diff --git a/README.md b/README.md index 96691fc264..f65a961dc8 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ addon | version | maintainers | summary [base_import_async](base_import_async/) | 19.0.1.0.0 | | Import CSV files in the background [queue_job](queue_job/) | 19.0.2.0.0 | guewen sbidoul | Job Queue [queue_job_batch](queue_job_batch/) | 19.0.1.0.0 | | Job Queue Batch +[queue_job_subscribe](queue_job_subscribe/) | 19.0.1.0.0 | | Control which users are subscribed to queue job notifications [test_queue_job](test_queue_job/) | 19.0.2.0.0 | sbidoul | Queue Job Tests [test_queue_job_batch](test_queue_job_batch/) | 19.0.1.0.0 | | Test Job Queue Batch @@ -34,7 +35,6 @@ addon | version | maintainers | summary --- | --- | --- | --- [queue_job_cron](queue_job_cron/) | 18.0.1.1.1 (unported) | | Scheduled Actions as Queue Jobs [queue_job_cron_jobrunner](queue_job_cron_jobrunner/) | 18.0.1.0.1 (unported) | ivantodorovich | Run jobs without a dedicated JobRunner -[queue_job_subscribe](queue_job_subscribe/) | 18.0.1.0.0 (unported) | | Control which users are subscribed to queue job notifications [//]: # (end addons) diff --git a/queue_job_subscribe/README.rst b/queue_job_subscribe/README.rst index 1d1aa653f6..decf18a0e2 100644 --- a/queue_job_subscribe/README.rst +++ b/queue_job_subscribe/README.rst @@ -2,7 +2,7 @@ Queue Job Subscribe =================== -.. +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! @@ -17,13 +17,13 @@ Queue Job Subscribe :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github - :target: https://github.com/OCA/queue/tree/18.0/queue_job_subscribe + :target: https://github.com/OCA/queue/tree/19.0/queue_job_subscribe :alt: OCA/queue .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/queue-18-0/queue-18-0-queue_job_subscribe + :target: https://translation.odoo-community.org/projects/queue-19-0/queue-19-0-queue_job_subscribe :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=19.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -53,7 +53,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -91,6 +91,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/queue `_ project on GitHub. +This module is part of the `OCA/queue `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/queue_job_subscribe/__manifest__.py b/queue_job_subscribe/__manifest__.py index 0b6ff496bc..16ddd21002 100644 --- a/queue_job_subscribe/__manifest__.py +++ b/queue_job_subscribe/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Queue Job Subscribe", - "version": "18.0.1.0.0", + "version": "19.0.1.0.0", "author": "Acsone SA/NV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/queue", "summary": "Control which users are subscribed to queue job notifications", @@ -10,5 +10,6 @@ "category": "Generic Modules", "depends": ["queue_job"], "data": ["views/res_users_view.xml"], - "installable": False, + "installable": True, + "development_status": "Beta", } diff --git a/queue_job_subscribe/i18n/queue_job_subscribe.pot b/queue_job_subscribe/i18n/queue_job_subscribe.pot index b070aee82f..32d39564c6 100644 --- a/queue_job_subscribe/i18n/queue_job_subscribe.pot +++ b/queue_job_subscribe/i18n/queue_job_subscribe.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 18.0\n" +"Project-Id-Version: Odoo Server 19.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/queue_job_subscribe/static/description/index.html b/queue_job_subscribe/static/description/index.html index a68b9af873..8cd5cdfe40 100644 --- a/queue_job_subscribe/static/description/index.html +++ b/queue_job_subscribe/static/description/index.html @@ -369,7 +369,7 @@

Queue Job Subscribe

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:dad459b8a0a33d0be9cba5350c77a9ae1c891c880940d16d0103f18545601ab2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/queue Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/queue Translate me on Weblate Try me on Runboat

This module allows users to be member of group Job Queue Manager without becoming follower of failed jobs. This can avoid for some users to receive a lot of emails in case of failing jobs.

@@ -399,7 +399,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -432,7 +432,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/queue project on GitHub.

+

This module is part of the OCA/queue project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From 5bbb93ca3c6f2e9b05f5cfc445a44671ce824793 Mon Sep 17 00:00:00 2001 From: Youssef AbouEgla Date: Mon, 20 Apr 2026 19:05:27 +0200 Subject: [PATCH 2/2] update test_job_subscribe.py --- queue_job_subscribe/tests/test_job_subscribe.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/queue_job_subscribe/tests/test_job_subscribe.py b/queue_job_subscribe/tests/test_job_subscribe.py index a56efa0554..a0a49e5b4f 100644 --- a/queue_job_subscribe/tests/test_job_subscribe.py +++ b/queue_job_subscribe/tests/test_job_subscribe.py @@ -2,6 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import odoo.tests.common as common +from odoo import Command from odoo.addons.queue_job.job import Job @@ -22,7 +23,7 @@ def setUp(self): "partner_id": self.other_partner_a.id, "login": "my_login a", "name": "my user", - "groups_id": [(4, grp_queue_job_manager)], + "group_ids": [Command.link(grp_queue_job_manager)], } ) ) @@ -34,7 +35,7 @@ def setUp(self): "partner_id": self.other_partner_b.id, "login": "my_login_b", "name": "my user 1", - "groups_id": [(4, grp_queue_job_manager)], + "group_ids": [Command.link(grp_queue_job_manager)], } ) @@ -58,7 +59,7 @@ def test_job_subscription_all_follow(self): ################################# stored = self._create_failed_job() users = self.env["res.users"].search( - [("groups_id", "=", self.ref("queue_job.group_queue_job_manager"))] + [("group_ids", "=", self.ref("queue_job.group_queue_job_manager"))] ) self.assertEqual(len(stored.message_follower_ids), len(users)) expected_partners = [u.partner_id for u in users] @@ -81,7 +82,7 @@ def test_job_subscription_not_follow(self): stored = self._create_failed_job() users = self.env["res.users"].search( [ - ("groups_id", "=", self.ref("queue_job.group_queue_job_manager")), + ("group_ids", "=", self.ref("queue_job.group_queue_job_manager")), ("subscribe_job", "=", True), ] )