summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_thread.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-09-26 19:37:29 +0200
committerChristophe Simonis <chs@odoo.com>2018-09-26 19:37:29 +0200
commit5f08d82bcd7fa0eaed7c0b0f35c7221c5e0b657a (patch)
tree1d1be253f568f18ffd0f7b2bd67577b77afaa3bd /addons/mail/models/mail_thread.py
parent7b13888c8e258a05a8044b7566b949071a911eab (diff)
parentfd122aec52166a2d19fe80579dbf9c98c6ab41fa (diff)
[MERGE] forward port branch 11.0 up to fd122aec521
Diffstat (limited to 'addons/mail/models/mail_thread.py')
-rw-r--r--addons/mail/models/mail_thread.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py
index 99aa3a2df2f..f21de36c28f 100644
--- a/addons/mail/models/mail_thread.py
+++ b/addons/mail/models/mail_thread.py
@@ -1193,6 +1193,7 @@ class MailThread(models.AbstractModel):
# if a new thread is created, parent is irrelevant
message_dict.pop('parent_id', None)
thread = MessageModel.message_new(message_dict, custom_values)
+ thread_id = thread.id
else:
if thread_id:
raise ValueError("Posting a message without model should be with a null res_id, to create a private message.")