diff --git a/addons/sms/models/mail_thread.py b/addons/sms/models/mail_thread.py index be76e797a48..c8a80d38288 100644 --- a/addons/sms/models/mail_thread.py +++ b/addons/sms/models/mail_thread.py @@ -157,8 +157,9 @@ class MailThread(models.AbstractModel): 'default_res_model': self._name, 'default_composition_mode': 'mass', 'default_template_id': template.id if template else False, - 'default_body': body if body and not template else False, } + if body and not template: + composer_context['default_body'] = body if active_domain is not None: composer_context['default_use_active_domain'] = True composer_context['default_active_domain'] = repr(active_domain)