summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-11-27 17:08:49 +0000
committerNicolas Lempereur <nle@odoo.com>2018-11-29 13:48:51 +0000
commitcad04fa0ea53db90205cf82dd44d617e92ffdc61 (patch)
treea390ecc2981521f3970df11ffc50ae819b0112f7
parent798b77bbd399e1def809681d7aea093a0ef15d65 (diff)
[FIX] mail: have signature in chatter by default
The signature is shown by default when sending a mail and in particular case it is not shown. In c8d283a592 there was a small regression that in some instance the signature that was shown before is not shown anymore. This is because the default in those instance is to not show signature. eg. a message sent in a chatter would not have signature in sent emails With this commit, the previous behavior is reintroduced. opw-1903001 opw-1896262 closes #29088
-rw-r--r--addons/mail/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py
index bd538fe7a39..f7cddd2525d 100644
--- a/addons/mail/models/mail_thread.py
+++ b/addons/mail/models/mail_thread.py
@@ -1926,7 +1926,7 @@ class MailThread(models.AbstractModel):
def message_post(self, body='', subject=None,
message_type='notification', subtype=None,
parent_id=False, attachments=None,
- notif_layout=False, add_sign=False, model_description=False,
+ notif_layout=False, add_sign=True, model_description=False,
mail_auto_delete=True, **kwargs):
""" Post a new message in an existing thread, returning the new
mail.message ID.