From 026a042e7b3b3470315b6e3f426db2ecd22ee47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 14 Nov 2012 15:35:06 +0100 Subject: [PATCH] [FIX] mail_thread: fixed message_subtype wrongly taken into account when posting through Chatter or fetchmail. bzr revid: tde@openerp.com-20121114143506-qcmhrcngfxm4tbvu --- addons/mail/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 81120151de1..99ce2bd595e 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -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,