From 09c6748ccad006b6d0182fe7f612b6993c6b8992 Mon Sep 17 00:00:00 2001 From: ntsirintanis Date: Fri, 8 Mar 2024 11:35:56 +0100 Subject: [PATCH] [MIG] fetchmail_thread_default: Migration to 16.0 --- fetchmail_thread_default/README.rst | 12 ++++++------ fetchmail_thread_default/__manifest__.py | 6 +++--- fetchmail_thread_default/demo/data.xml | 3 --- .../static/description/index.html | 9 +++++---- fetchmail_thread_default/tests/test_fetchmail.py | 7 ++++--- .../views/fetchmail_server_view.xml | 2 +- 6 files changed, 19 insertions(+), 20 deletions(-) diff --git a/fetchmail_thread_default/README.rst b/fetchmail_thread_default/README.rst index 74292c86b9..60a4daef8a 100644 --- a/fetchmail_thread_default/README.rst +++ b/fetchmail_thread_default/README.rst @@ -7,7 +7,7 @@ Default Thread For Unbounded Emails !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:9258be92f2d70f6f3e7f031810ef917b314e17537387238e6bb8d7272c95c517 + !! source digest: sha256:f061ffb849f91e6265d3201a499a57b33fd9b79f2cfbffa9a65a74cd2bc141ce !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Default Thread For Unbounded Emails :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github - :target: https://github.com/OCA/social/tree/14.0/fetchmail_thread_default + :target: https://github.com/OCA/social/tree/16.0/fetchmail_thread_default :alt: OCA/social .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-14-0/social-14-0-fetchmail_thread_default + :target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-fetchmail_thread_default :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/social&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -78,7 +78,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. @@ -116,6 +116,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/social `_ project on GitHub. +This module is part of the `OCA/social `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/fetchmail_thread_default/__manifest__.py b/fetchmail_thread_default/__manifest__.py index 88dca97aad..f42ecab79c 100644 --- a/fetchmail_thread_default/__manifest__.py +++ b/fetchmail_thread_default/__manifest__.py @@ -1,17 +1,17 @@ # Copyright 2017 Tecnativa - Jairo Llopis -# Copyright 2023 Therp BV +# Copyright 2023-24 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Default Thread For Unbounded Emails", "summary": "Post unkonwn messages to an existing thread", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "category": "Discuss", "website": "https://github.com/OCA/social", "author": "Tecnativa, Therp BV, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, "installable": True, - "depends": ["fetchmail"], + "depends": ["mail"], "data": ["views/fetchmail_server_view.xml"], "demo": ["demo/data.xml"], } diff --git a/fetchmail_thread_default/demo/data.xml b/fetchmail_thread_default/demo/data.xml index 6f52b3b402..41f6ddbccc 100644 --- a/fetchmail_thread_default/demo/data.xml +++ b/fetchmail_thread_default/demo/data.xml @@ -5,10 +5,7 @@ mailsink - Unbounded email sink - everyone - private diff --git a/fetchmail_thread_default/static/description/index.html b/fetchmail_thread_default/static/description/index.html index 2de62eafde..e5b2cac47e 100644 --- a/fetchmail_thread_default/static/description/index.html +++ b/fetchmail_thread_default/static/description/index.html @@ -1,3 +1,4 @@ + @@ -366,9 +367,9 @@

Default Thread For Unbounded Emails

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:9258be92f2d70f6f3e7f031810ef917b314e17537387238e6bb8d7272c95c517 +!! source digest: sha256:f061ffb849f91e6265d3201a499a57b33fd9b79f2cfbffa9a65a74cd2bc141ce !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module extends the functionality of mail fetching to support choosing a mail thread that acts as a mail sink and gathers all mail messages that Odoo does not know where to put.

@@ -426,7 +427,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.

@@ -459,7 +460,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/social project on GitHub.

+

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

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

diff --git a/fetchmail_thread_default/tests/test_fetchmail.py b/fetchmail_thread_default/tests/test_fetchmail.py index ce50c59a8c..05e06d077d 100644 --- a/fetchmail_thread_default/tests/test_fetchmail.py +++ b/fetchmail_thread_default/tests/test_fetchmail.py @@ -1,16 +1,16 @@ # Copyright 2017 Tecnativa - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase from odoo.tools import mute_logger from odoo.addons.test_mail.tests.test_mail_gateway import MAIL_TEMPLATE -class FetchmailCase(SavepointCase): +class FetchmailCase(TransactionCase): @classmethod def setUpClass(cls): - super(FetchmailCase, cls).setUpClass() + super().setUpClass() cls.server = cls.env.ref("fetchmail_thread_default.demo_server") cls.sink = cls.env.ref("fetchmail_thread_default.demo_sink") cls.MailThread = cls.env["mail.thread"] @@ -41,6 +41,7 @@ def test_unbound_incoming_email(self): ).message_process( self.server.object_id.model, MAIL_TEMPLATE.format( + return_path="spambot@example.com", email_from="spambot@example.com", to="you@example.com", cc="nobody@example.com", diff --git a/fetchmail_thread_default/views/fetchmail_server_view.xml b/fetchmail_thread_default/views/fetchmail_server_view.xml index 314ff06bf1..6d689854c2 100644 --- a/fetchmail_thread_default/views/fetchmail_server_view.xml +++ b/fetchmail_thread_default/views/fetchmail_server_view.xml @@ -6,7 +6,7 @@ Add default thread fetchmail.server - +