[FIX] mail: correctly propagate parameters when re-calling message_post

A new notif_layout parameter has been introduced at 304e6cf90b. However it is
not correctly propagated to sub-calls when redirecting message_post
using context and sub-model.
This commit is contained in:
Thibault Delavallée
2018-02-20 17:45:43 +01:00
parent b4cf1a620c
commit 5140e19092
+1 -1
View File
@@ -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')