[FIX] mail: do not display recipients when using log note
In log note case, followers are not going to be notified of the message. Therefore the recipients input should not be visible. task-3504225 closes odoo/odoo#136661 X-original-commit: c60449a2efde457e8370928681f011c103ea1d60 Signed-off-by: Louis Wicket (wil) <wil@odoo.com> Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
<!-- visible wizard -->
|
||||
<field name="email_from"
|
||||
invisible="composition_mode != 'mass_mail'"/>
|
||||
<label for="partner_ids" string="Recipients" invisible="composition_mode != 'comment'"/>
|
||||
<div groups="base.group_user" invisible="composition_mode != 'comment'">
|
||||
<label for="partner_ids" string="Recipients" invisible="composition_mode != 'comment' or subtype_is_log"/>
|
||||
<div groups="base.group_user" invisible="composition_mode != 'comment' or subtype_is_log">
|
||||
<span name="document_followers_text" invisible="not model or composition_mode == 'mass_mail'">Followers of the document and</span>
|
||||
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..."
|
||||
context="{'force_email':True, 'show_email':True}"/>
|
||||
|
||||
Reference in New Issue
Block a user