diff --git a/mail_optional_autofollow/README.rst b/mail_optional_autofollow/README.rst index 6dcafdfda4..32f07fa3ee 100644 --- a/mail_optional_autofollow/README.rst +++ b/mail_optional_autofollow/README.rst @@ -24,7 +24,7 @@ To use this module, you need to use the autofollow recipients checkbox on mail.compose.message: Technically, this field is initialized to true if there is a -'mail_post_autofollow' key in the current context +'mail_post_autofollow' key in the current context .. figure:: static/description/autofollow.png :alt: autofollow recipients checkbox @@ -62,13 +62,6 @@ Contributors Do not contact contributors directly about support or help with technical issues. -Funders -------- - -The development of this module has been financially supported by: - -* Acsone - Maintainer ---------- diff --git a/mail_optional_autofollow/__manifest__.py b/mail_optional_autofollow/__manifest__.py index ea80e13203..74cf2bd30e 100644 --- a/mail_optional_autofollow/__manifest__.py +++ b/mail_optional_autofollow/__manifest__.py @@ -8,7 +8,7 @@ "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/social", "category": "Social Network", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "license": "AGPL-3", "depends": ["mail"], "data": ["wizard/mail_compose_message_view.xml"], diff --git a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py index d55956a18c..f5b536e2d0 100644 --- a/mail_optional_autofollow/tests/test_mail_optional_autofollow.py +++ b/mail_optional_autofollow/tests/test_mail_optional_autofollow.py @@ -1,10 +1,12 @@ # Copyright 2016 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests import common +from odoo.fields import Command +from odoo.addons.base.tests.common import BaseCommon -class TestAttachExistingAttachment(common.TransactionCase): + +class TestAttachExistingAttachment(BaseCommon): def setUp(self): super().setUp() self.partner_obj = self.env["res.partner"] @@ -22,7 +24,7 @@ def test_send_email_attachment(self): ) mail_compose = self.env["mail.compose.message"] values = { - "partner_ids": [(4, self.partner_02.id)], + "partner_ids": [Command.link(self.partner_02.id)], "composition_mode": "comment", } compose_id = mail_compose.with_context(**ctx).create(values)