[FIX] mail_thread: fixed message_subtype wrongly taken into account when posting through Chatter or fetchmail.

bzr revid: tde@openerp.com-20121114143506-qcmhrcngfxm4tbvu
This commit is contained in:
Thibault Delavallée
2012-11-14 15:35:06 +01:00
parent eb04795e28
commit 026a042e7b
+1 -1
View File
@@ -758,7 +758,7 @@ class mail_thread(osv.AbstractModel):
partner_ids.append((4, parent_message.author_id.id))
message_type = kwargs.pop('type', 'comment')
message_subtype = kwargs.pop('type', 'mail.mt_comment')
message_subtype = kwargs.pop('subtype', 'mail.mt_comment')
# 2. Post message
new_message_id = self.message_post(cr, uid, thread_id=thread_id, body=body, subject=subject, type=message_type,