From 22600e227d9a5904ee7c0fa4a1b2a34b8f4b4e8a Mon Sep 17 00:00:00 2001 From: Milan Topuzov Date: Wed, 1 Oct 2025 14:20:20 +0200 Subject: [PATCH 1/2] [19.0] queue_job_subscribe: migrate + tests - Scope: queue_job_subscribe only --- queue_job_subscribe/README.rst | 22 +++++++------ queue_job_subscribe/__manifest__.py | 4 +-- .../static/description/index.html | 32 +++++++++++-------- .../tests/test_job_subscribe.py | 8 ++--- 4 files changed, 38 insertions(+), 28 deletions(-) diff --git a/queue_job_subscribe/README.rst b/queue_job_subscribe/README.rst index 1d1aa653f6..7ae1f747ba 100644 --- a/queue_job_subscribe/README.rst +++ b/queue_job_subscribe/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + =================== Queue Job Subscribe =================== @@ -13,17 +17,17 @@ Queue Job Subscribe .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :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 +57,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. @@ -68,9 +72,9 @@ Authors Contributors ------------ -- Cédric Pigeon -- Stéphane Bidoul -- Tran Quoc Duong +- Cédric Pigeon +- Stéphane Bidoul +- Tran Quoc Duong Other credits ------------- @@ -91,6 +95,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..7b9de45f26 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,5 @@ "category": "Generic Modules", "depends": ["queue_job"], "data": ["views/res_users_view.xml"], - "installable": False, + "installable": True, } diff --git a/queue_job_subscribe/static/description/index.html b/queue_job_subscribe/static/description/index.html index a68b9af873..7ae1be27b3 100644 --- a/queue_job_subscribe/static/description/index.html +++ b/queue_job_subscribe/static/description/index.html @@ -3,7 +3,7 @@ -Queue Job Subscribe +README.rst -
-

Queue Job Subscribe

+
+ + +Odoo Community Association + +
+

Queue Job Subscribe

-

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.

@@ -388,30 +393,30 @@

Queue Job Subscribe

-

Usage

+

Usage

On the user configuration form, there is new Job Notifications checkbox.

If checked, the user becomes follower of failed jobs if he/she is part of the Job Queue Manager group.

If not checked, the user does not become follower of failed jobs.

-

Bug Tracker

+

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.

-

Credits

+

Credits

-

Authors

+

Authors

  • Acsone SA/NV
-

Contributors

+

Contributors

-

Other credits

+

Other credits

The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -432,10 +437,11 @@

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.

+
diff --git a/queue_job_subscribe/tests/test_job_subscribe.py b/queue_job_subscribe/tests/test_job_subscribe.py index a56efa0554..9f4668ab21 100644 --- a/queue_job_subscribe/tests/test_job_subscribe.py +++ b/queue_job_subscribe/tests/test_job_subscribe.py @@ -22,7 +22,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": [(4, grp_queue_job_manager)], } ) ) @@ -34,7 +34,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": [(4, grp_queue_job_manager)], } ) @@ -58,7 +58,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 +81,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), ] ) From aaceda6e111f9b1a3951e1b332a6026dbf2e8f80 Mon Sep 17 00:00:00 2001 From: Milan Topuzov Date: Wed, 1 Oct 2025 14:20:24 +0200 Subject: [PATCH 2/2] [pre-commit] auto-fixes for queue_job_subscribe scope --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d0fa1036b..9ae132bf44 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,6 @@ exclude: | ^queue_job_batch/| ^queue_job_cron/| ^queue_job_cron_jobrunner/| - ^queue_job_subscribe/| ^test_queue_job/| ^test_queue_job_batch/| # END NOT INSTALLABLE ADDONS