Browse Source

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

pull/193/merge
Denis Robinet (ACSONE) 7 years ago
committed by Jairo Llopis
parent
commit
749360aeae
  1. 2
      mail_optional_autofollow/wizard/mail_compose_message_view.xml
  2. 2
      mail_optional_follower_notification/wizard/mail_compose_message_view.xml

2
mail_optional_autofollow/wizard/mail_compose_message_view.xml

@ -6,7 +6,7 @@
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/> <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//div[field[@name='partner_ids']]" position="after"> <xpath expr="//div[field[@name='partner_ids']]" position="after">
<field name="autofollow_recipients" />
<field name="autofollow_recipients" attrs="{'invisible': [('composition_mode', '=', 'mass_mail')]}"/>
</xpath> </xpath>
</field> </field>
</record> </record>

2
mail_optional_follower_notification/wizard/mail_compose_message_view.xml

@ -7,7 +7,7 @@
<field name="inherit_id" ref="mail.email_compose_message_wizard_form"/> <field name="inherit_id" ref="mail.email_compose_message_wizard_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//div[field[@name='partner_ids']]/span[2]" position="before"> <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>
<xpath expr="//div[field[@name='partner_ids']]/span[2]" position="inside"> <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> <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>

Loading…
Cancel
Save