diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 4790fb3393f..ca598ce3a93 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -629,7 +629,8 @@ class mail_thread(osv.AbstractModel): mail.message ID. Extra keyword arguments will be used as default column values for the new mail.message record. Auto link messages for same id and object - :param int thread_id: thread ID to post into, or list with one ID + :param int thread_id: thread ID to post into, or list with one ID; + if False/0, mail.message model will also be set as False :param str body: body of the message, usually raw HTML that will be sanitized :param str subject: optional subject diff --git a/addons/mail/mail_thread_view.xml b/addons/mail/mail_thread_view.xml index 07b24725b05..9737d93dd8f 100644 --- a/addons/mail/mail_thread_view.xml +++ b/addons/mail/mail_thread_view.xml @@ -11,7 +11,7 @@ To: me mail.wall - diff --git a/addons/mail/res_partner.py b/addons/mail/res_partner.py index 6f291f62f1b..df85ac3f17f 100644 --- a/addons/mail/res_partner.py +++ b/addons/mail/res_partner.py @@ -48,7 +48,7 @@ class res_partner_mail(osv.Model): private: - add the target partner in the message partner_ids - set thread_id as None, because this will trigger the 'private' - aspect of the message (model=False, res_is=False) + aspect of the message (model=False, res_id=False) """ if isinstance(thread_id, (list, tuple)): thread_id = thread_id[0]