diff options
Diffstat (limited to 'addons/mail/mail_thread.py')
| -rw-r--r-- | addons/mail/mail_thread.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index c5ec4c2b17a..e986f12b822 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -707,13 +707,12 @@ class mail_thread(osv.AbstractModel): return mail_message.create(cr, uid, values, context=context) - def message_post_api(self, cr, uid, thread_id, body='', subject=False, type='notification', - parent_id=False, attachment_ids=None, context=None): + def message_post_api(self, cr, uid, thread_id, body='', subject=False, parent_id=False, attachment_ids=None, context=None): """ Wrapper on message_post, used only in Chatter (JS). The purpose is to handle attachments. # TDE FIXME: body is plaintext: convert it into html """ - new_message_id = self.message_post(cr, uid, thread_id=thread_id, body=body, subject=subject, type=type, + new_message_id = self.message_post(cr, uid, thread_id=thread_id, body=body, subject=subject, type='comment', subtype='mail.mt_comment', parent_id=parent_id, context=context) # HACK FIXME: Chatter: attachments linked to the document (not done JS-side), load the message |
