Skip to content

Commit add4678

Browse files
committed
[MIG] mail_optional_follower_notification: Migration to 19.0
1 parent 9a2ad94 commit add4678

File tree

5 files changed

+30
-26
lines changed

5 files changed

+30
-26
lines changed

mail_optional_follower_notification/README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Mail optional follower notification
2121
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222
:alt: License: AGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
24-
:target: https://github.com/OCA/mail/tree/18.0/mail_optional_follower_notification
24+
:target: https://github.com/OCA/mail/tree/19.0/mail_optional_follower_notification
2525
:alt: OCA/mail
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_optional_follower_notification
27+
:target: https://translation.odoo-community.org/projects/mail-19-0/mail-19-0-mail_optional_follower_notification
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -55,17 +55,17 @@ This field it's initialized to true to keep the standard behavior.
5555

5656
|image3|
5757

58-
.. |image1| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_follower_notification/static/description/optional_follower_001.png
59-
.. |image2| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_follower_notification/static/description/optional_follower_002.png
60-
.. |image3| image:: https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_follower_notification/static/description/optional_follower_003.png
58+
.. |image1| image:: https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_follower_notification/static/description/optional_follower_001.png
59+
.. |image2| image:: https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_follower_notification/static/description/optional_follower_002.png
60+
.. |image3| image:: https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_follower_notification/static/description/optional_follower_003.png
6161

6262
Bug Tracker
6363
===========
6464

6565
Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_.
6666
In case of trouble, please check there if your issue has already been reported.
6767
If you spotted it first, help us to smash it by providing a detailed and welcomed
68-
`feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_optional_follower_notification%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
68+
`feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_optional_follower_notification%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6969

7070
Do not contact contributors directly about support or help with technical issues.
7171

@@ -99,6 +99,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9999
mission is to support the collaborative development of Odoo features and
100100
promote its widespread use.
101101

102-
This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/18.0/mail_optional_follower_notification>`_ project on GitHub.
102+
This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/19.0/mail_optional_follower_notification>`_ project on GitHub.
103103

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

mail_optional_follower_notification/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
77
"website": "https://github.com/OCA/mail",
88
"category": "Social Network",
9-
"version": "18.0.1.0.0",
9+
"version": "19.0.1.0.0",
1010
"license": "AGPL-3",
1111
"depends": ["mail"],
1212
"data": [

mail_optional_follower_notification/static/description/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>Mail optional follower notification</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:4fd3a6a8cc63971c71c70313d6220166563430cb086eb802282d33d7293819e3
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mail/tree/18.0/mail_optional_follower_notification"><img alt="OCA/mail" src="https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_optional_follower_notification"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/mail&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/mail/tree/19.0/mail_optional_follower_notification"><img alt="OCA/mail" src="https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/mail-19-0/mail-19-0-mail_optional_follower_notification"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/mail&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This module adds the possibility to choose if you want to automatically
379379
notify followers on mail.compose.message. By default, Odoo notify
380380
automatically all followers.</p>
@@ -396,16 +396,16 @@ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
396396
<p>To use this module, you need to use the checkbox near “Followers of the
397397
document and” on mail.compose.message:</p>
398398
<p>This field it’s initialized to true to keep the standard behavior.</p>
399-
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_follower_notification/static/description/optional_follower_001.png" /></p>
400-
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_follower_notification/static/description/optional_follower_002.png" /></p>
401-
<p><img alt="image3" src="https://raw.githubusercontent.com/OCA/mail/18.0/mail_optional_follower_notification/static/description/optional_follower_003.png" /></p>
399+
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_follower_notification/static/description/optional_follower_001.png" /></p>
400+
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_follower_notification/static/description/optional_follower_002.png" /></p>
401+
<p><img alt="image3" src="https://raw.githubusercontent.com/OCA/mail/19.0/mail_optional_follower_notification/static/description/optional_follower_003.png" /></p>
402402
</div>
403403
<div class="section" id="bug-tracker">
404404
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
405405
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/mail/issues">GitHub Issues</a>.
406406
In case of trouble, please check there if your issue has already been reported.
407407
If you spotted it first, help us to smash it by providing a detailed and welcomed
408-
<a class="reference external" href="https://github.com/OCA/mail/issues/new?body=module:%20mail_optional_follower_notification%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
408+
<a class="reference external" href="https://github.com/OCA/mail/issues/new?body=module:%20mail_optional_follower_notification%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
409409
<p>Do not contact contributors directly about support or help with technical issues.</p>
410410
</div>
411411
<div class="section" id="credits">
@@ -435,7 +435,7 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
435435
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
436436
mission is to support the collaborative development of Odoo features and
437437
promote its widespread use.</p>
438-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/mail/tree/18.0/mail_optional_follower_notification">OCA/mail</a> project on GitHub.</p>
438+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/mail/tree/19.0/mail_optional_follower_notification">OCA/mail</a> project on GitHub.</p>
439439
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
440440
</div>
441441
</div>

mail_optional_follower_notification/tests/test_mail_optional_follower_notifications.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@ class TestMailOptionalFollowernotifications(TransactionCase):
88
@classmethod
99
def setUpClass(cls):
1010
super().setUpClass()
11-
cls.partner_obj = cls.env["res.partner"]
12-
cls.partner_01 = cls.env.ref("base.res_partner_2")
13-
demo_user = cls.env.ref("base.user_demo")
14-
cls.partner_follower = demo_user.partner_id
15-
cls.partner_no_follower = demo_user.copy().partner_id
11+
cls.user = cls.env["res.users"].create(
12+
{
13+
"name": "Test User",
14+
"login": "test",
15+
"notification_type": "inbox",
16+
}
17+
)
18+
cls.partner_01 = cls.env["res.partner"].create(
19+
{
20+
"name": "Test Contact",
21+
}
22+
)
23+
cls.partner_01 = cls.user.partner_id
24+
cls.partner_follower = cls.user.partner_id
25+
cls.partner_no_follower = cls.user.copy().partner_id
1626
cls.partner_no_follower.email = "test@example.com"
1727
cls.partner_01.message_subscribe(partner_ids=[cls.partner_follower.id])
1828
ctx = cls.env.context.copy()

mail_optional_follower_notification/wizard/mail_compose_message_view.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
style="color: red;"
1717
> - Warning : Followers will not be notified but they can access the notification directly from the document (if they are allowed to)</span>
1818
</xpath>
19-
<xpath
20-
expr="//widget[@name='mail_composer_recipient_list']"
21-
position="attributes"
22-
>
23-
<attribute name="invisible" add="not notify_followers" separator="or" />
24-
</xpath>
2519
</field>
2620
</record>
2721
</odoo>

0 commit comments

Comments
 (0)