[FIX] thunderbird: changes in history() of partner.py

bzr revid: rha@tinyerp.com-20110421095316-zccag93g4spnzeja
This commit is contained in:
Rifakat Haradwala (Open ERP)
2011-04-21 15:23:16 +05:30
parent 4b2f93cb34
commit 2c9825a07b
+10 -7
View File
@@ -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)