From 1b5b2b9dd08fb067b6a65e1bb8d5d21e3d8ea6b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 26 Feb 2018 10:25:22 +0100 Subject: [PATCH] [FIX] mail: correctly propagate message_post parameters to redirection Propagation was not correctly done at 8a026e26c6ae25e3fdb5369a7fa3343d70fab782 . This commit ensures all parameters are passed to sub-calls when redirection is done in message_post. --- addons/mail/models/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index a7dd7c66232..c3a0034ad51 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1817,7 +1817,7 @@ class MailThread(models.AbstractModel): return RecordModel.browse(self.ids).message_post( body=body, subject=subject, message_type=message_type, subtype=subtype, parent_id=parent_id, attachments=attachments, - content_subtype=content_subtype, notif_layout=notif_layout, **kwargs) + content_subtype=content_subtype, notif_layout=notif_layout, notif_values=notif_values, **kwargs) # 0: Find the message's author, because we need it for private discussion author_id = kwargs.get('author_id')