summaryrefslogtreecommitdiff
path: root/addons/mail/mail_thread.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-10-29 11:12:30 +0100
committerThibault Delavallée <tde@openerp.com>2012-10-29 11:12:30 +0100
commita2d3d1df80c044ed62a02e47d7dca242b385992d (patch)
tree38ada1b95c6379b8d7960d6d4302c5e87affe26a /addons/mail/mail_thread.py
parentcbf55bc07d979dac915a3d7314ee0979ec4d17ff (diff)
[CLEAN] message_post_api: removed unnecessary type arg (posting is a comment).
bzr revid: tde@openerp.com-20121029101230-x39pep9p5edd54ml
Diffstat (limited to 'addons/mail/mail_thread.py')
-rw-r--r--addons/mail/mail_thread.py5
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