From 5140e19092cbb24b668a164d78810576f1a333eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 20 Feb 2018 17:42:21 +0100 Subject: [PATCH] [FIX] mail: correctly propagate parameters when re-calling message_post A new notif_layout parameter has been introduced at 304e6cf90b9ef969c809030b3e65ac6b667eea0e. However it is not correctly propagated to sub-calls when redirecting message_post using context and sub-model. --- 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 8fcbed6ea16..3580950798c 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -1823,7 +1823,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, **kwargs) + content_subtype=content_subtype, notif_layout=notif_layout, **kwargs) # 0: Find the message's author, because we need it for private discussion author_id = kwargs.get('author_id')