From 2c9825a07be5c6c76f488c82bda23f31c0b1d2fc Mon Sep 17 00:00:00 2001 From: "Rifakat Haradwala (Open ERP)" Date: Thu, 21 Apr 2011 15:23:16 +0530 Subject: [PATCH] [FIX] thunderbird: changes in history() of partner.py bzr revid: rha@tinyerp.com-20110421095316-zccag93g4spnzeja --- addons/thunderbird/partner/partner.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py index 747625532b2..d67238db5fc 100644 --- a/addons/thunderbird/partner/partner.py +++ b/addons/thunderbird/partner/partner.py @@ -87,13 +87,16 @@ class thunderbird_partner(osv.osv_memory): res['res_id'] = res_id obj_attch.create(cr, uid, res) threads = self.pool.get(model).browse(cr, uid, res_id) - thread_pool.history(cr, uid, [threads], subject, - email=msg.get('to', False), - details=msg.get('body', False), - email_from=msg.get('from', False), - message_id= msg.get('message-id', False), - attach= msg.get('attachments', {}), - email_date= msg.get('date', False)) + thread_pool.history(cr, uid, [threads], _('receive'), history=True, + subject = msg.get('subject'), + email = msg.get('to'), + details = msg.get('body'), + email_from = msg.get('from'), + email_cc = msg.get('cc'), + message_id = msg.get('message-id'), + references = msg.get('references', False) or msg.get('in-reply-to', False), + attach = msg.get('attachments', {}), + email_date = msg.get('date')) res_ids.append(res_id) return len(res_ids)