diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 5e333cc56fb..f3f5401bc92 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -2011,7 +2011,9 @@ class MailThread(models.AbstractModel): if 'email_add_signature' not in msg_values: msg_values['email_add_signature'] = True if not msg_values.get('record_name'): - msg_values['record_name'] = self.display_name + # use sudo as record access is not always granted (notably when replying + # a notification) -> final check is done at message creation level + msg_values['record_name'] = self.sudo().display_name msg_values.update({ # author 'author_id': author_id,