diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cdbd3cf757..a77fbc3f7b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,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 diff --git a/queue_job_subscribe/README.rst b/queue_job_subscribe/README.rst index 1d1aa653f6..b82fbeb8c1 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/20.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-20-0/queue-20-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=20.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..f24cf1c9ee 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": "20.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/i18n/queue_job_subscribe.pot b/queue_job_subscribe/i18n/queue_job_subscribe.pot index b070aee82f..0d5d7fdaeb 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" @@ -18,6 +18,18 @@ msgstr "" msgid "Connectors" msgstr "" +#. module: queue_job_subscribe +#: model:ir.model.fields,field_description:queue_job_subscribe.field_queue_job__display_name +#: model:ir.model.fields,field_description:queue_job_subscribe.field_res_users__display_name +msgid "Display Name" +msgstr "" + +#. module: queue_job_subscribe +#: model:ir.model.fields,field_description:queue_job_subscribe.field_queue_job__id +#: model:ir.model.fields,field_description:queue_job_subscribe.field_res_users__id +msgid "ID" +msgstr "" + #. module: queue_job_subscribe #: model:ir.model.fields,help:queue_job_subscribe.field_res_users__subscribe_job msgid "" diff --git a/queue_job_subscribe/static/description/index.html b/queue_job_subscribe/static/description/index.html index a68b9af873..1e56204eab 100644 --- a/queue_job_subscribe/static/description/index.html +++ b/queue_job_subscribe/static/description/index.html @@ -360,16 +360,21 @@ -
-

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..5cdb6d51ab 100644 --- a/queue_job_subscribe/tests/test_job_subscribe.py +++ b/queue_job_subscribe/tests/test_job_subscribe.py @@ -1,7 +1,8 @@ # Copyright 2016 Cédric Pigeon # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -import odoo.tests.common as common +from odoo import Command +from odoo.tests import common 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), ] ) diff --git a/queue_job_subscribe/views/res_users_view.xml b/queue_job_subscribe/views/res_users_view.xml index 009ec298e2..228cbd3499 100644 --- a/queue_job_subscribe/views/res_users_view.xml +++ b/queue_job_subscribe/views/res_users_view.xml @@ -1,4 +1,4 @@ - + res.user.connector.form