diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-08-22 13:32:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-08-22 13:32:34 +0200 |
| commit | 902fc764d502d411096a0d49eed6faa07120905d (patch) | |
| tree | 8982aeba2b9be71c1d1727e9ed053dd4abbccb6f | |
| parent | c023e1d562b945287fcb7b3256f9a55c95e9ee1b (diff) | |
[FIX] mail: only set `header` value for emails (not comments)
| -rw-r--r-- | addons/mail/wizard/mail_compose_message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 5afdaa3ab2a..957a8fa86b6 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -294,11 +294,11 @@ class MailComposer(models.TransientModel): 'no_auto_thread': self.no_auto_thread, 'mail_server_id': self.mail_server_id.id, } - if self.model in self.env and hasattr(self.env[self.model], 'message_get_email_values'): - mail_values.update(self.env[self.model].browse(res_id).message_get_email_values()) # mass mailing: rendering override wizard static values if mass_mail_mode and self.model: + if self.model in self.env and hasattr(self.env[self.model], 'message_get_email_values'): + mail_values.update(self.env[self.model].browse(res_id).message_get_email_values()) # keep a copy unless specifically requested, reset record name (avoid browsing records) mail_values.update(notification=not self.auto_delete_message, model=self.model, res_id=res_id, record_name=False) # auto deletion of mail_mail |
