From 6ad6df59b5041bb929ca937074dd31a3f5c921e0 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 29 Jun 2018 10:39:46 +0200 Subject: [PATCH] Revert "[IMP] mail: Subject and body readonly if mass_x composition_mode" This reverts commit 2774e3b4a82f3c0ea94faff8facb7c4ee5ce7b48. Wrong manipulation of the "merge button" The fix was already merged at 5a0dcd3c2 --- addons/mail/wizard/mail_compose_message.py | 2 +- addons/mail/wizard/mail_compose_message_view.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 5a1aca10ed0..64d3f2dfbf6 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -455,7 +455,7 @@ class MailComposer(models.TransientModel): for res_id in res_ids: results[res_id] = { 'subject': subjects[res_id] if subjects else False, - 'body': bodies[res_id] if bodies else False, + 'body': bodies[res_id] if subjects else False, 'email_from': emails_from[res_id], 'reply_to': replies_to[res_id], } diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml index 7e4699ee69b..2ae03360d14 100644 --- a/addons/mail/wizard/mail_compose_message_view.xml +++ b/addons/mail/wizard/mail_compose_message_view.xml @@ -47,7 +47,7 @@ context="{'force_email':True, 'show_email':True}" attrs="{'invisible': [('composition_mode', '!=', 'comment')]}"/> - + @@ -57,7 +57,7 @@ attrs="{'invisible':['|', ('no_auto_thread', '=', False), ('composition_mode', '!=', 'mass_mail')], 'required':[('no_auto_thread', '=', True), ('composition_mode', '=', 'mass_mail')]}"/> - +