Skip to content

Commit f6c62f1

Browse files
author
Graeme Gellatly
committed
[MIG][18.0] mail_optional_follower_notification
1 parent f7bb112 commit f6c62f1

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

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": "17.0.1.1.0",
9+
"version": "18.0.1.0.0",
1010
"license": "AGPL-3",
1111
"depends": ["mail"],
1212
"data": [

mail_optional_follower_notification/wizard/mail_compose_message_view.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,26 @@
44
<field name="model">mail.compose.message</field>
55
<field name="inherit_id" ref="mail.email_compose_message_wizard_form" />
66
<field name="arch" type="xml">
7-
<xpath expr="//span[@name='document_followers_text']" position="before">
7+
<xpath expr="//field[@name='email_from']" position="after">
88
<field
99
name="notify_followers"
1010
invisible="composition_mode == 'mass_mail'"
1111
/>
12-
</xpath>
13-
<xpath expr="//span[@name='document_followers_text']" position="after">
1412
<span
1513
name="no_followers_text"
14+
colspan="2"
1615
invisible="notify_followers"
1716
style="color: red;"
1817
> - Warning : Followers will not be notified but they can access the notification directly from the document (if they are allowed to)</span>
1918
</xpath>
19+
<xpath
20+
expr="//widget[@name='mail_compose_recipient_list']"
21+
position="attributes"
22+
>
23+
<attribute
24+
name="invisible"
25+
>not model or composition_mode == 'mass_mail' or not notify_followers</attribute>
26+
</xpath>
2027
</field>
2128
</record>
2229
</odoo>

0 commit comments

Comments
 (0)