[IMP] Hide the checkbox for the mass mailing in mail_optional_follower_notification and mail_optional_autofollow

This commit is contained in:
Denis Robinet (ACSONE) 2017-12-04 17:21:55 +01:00 committed by Robin Goots
parent 6f933c0088
commit b8784ad196

View File

@ -7,7 +7,7 @@
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
<field name="arch" type="xml">
<xpath expr="//div[field[@name='partner_ids']]/span[2]" position="before">
<field name="notify_followers" />
<field name="notify_followers" attrs="{'invisible': [('composition_mode', '=', 'mass_mail')]}"/>
</xpath>
<xpath expr="//div[field[@name='partner_ids']]/span[2]" position="inside">
<span attrs="{'invisible': [('notify_followers', '=', True)]}" style="color: red;"> - Warning : Followers will not be notified but they can access the notification directly from the document (if they are allowed to)</span>