Skip to content

Commit

Permalink
[MIG] mail_optional_autofollow: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchov committed Feb 10, 2025
1 parent 219f634 commit 7b3d90b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
9 changes: 1 addition & 8 deletions mail_optional_autofollow/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
----------

Expand Down
2 changes: 1 addition & 1 deletion mail_optional_autofollow/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# 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"]
Expand All @@ -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)
Expand Down

0 comments on commit 7b3d90b

Please sign in to comment.