summaryrefslogtreecommitdiff
path: root/addons/mail/wizard
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-07-11 14:47:33 +0200
committerChristophe Matthieu <chm@odoo.com>2018-07-11 15:38:59 +0200
commit6a5dc8bcd1310e1cd326026d64769a400a075202 (patch)
tree6855526f2b04df21501bc434aac253170da5505a /addons/mail/wizard
parent50ab1817620253c6090f0a9aa5fcaed4ff737f31 (diff)
[FIX] mail: remove attachment feature in add followers modal
Before this fix, the attachments are don't save to the record and are remove with the wizard. We can't add the attachments to mail.message (like 'mail.compose.message') because it's auto_delete/unlink and the attachments are removed before the recipient can read it.
Diffstat (limited to 'addons/mail/wizard')
-rw-r--r--addons/mail/wizard/invite_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/invite_view.xml b/addons/mail/wizard/invite_view.xml
index f9f9cb30b23..d64e10f387d 100644
--- a/addons/mail/wizard/invite_view.xml
+++ b/addons/mail/wizard/invite_view.xml
@@ -20,7 +20,7 @@
invisible="not context.get('mail_invite_follower_channel_only')"
options="{'no_create': True}"/>
<field name="send_mail" invisible="context.get('mail_invite_follower_channel_only')"/>
- <field name="message" attrs="{'invisible': [('send_mail','!=',True)]}" options="{'style-inline': true}" class="test_message"/>
+ <field name="message" attrs="{'invisible': [('send_mail','!=',True)]}" options="{'style-inline': true, 'no-attachment': true}" class="test_message"/>
</group>
<footer>
<button string="Add Followers"