summaryrefslogtreecommitdiff
path: root/addons/thunderbird/partner/partner.py
diff options
context:
space:
mode:
authorksa (Open ERP) <ksa@tinyerp.co.in>2010-09-20 13:28:13 +0530
committerksa (Open ERP) <ksa@tinyerp.co.in>2010-09-20 13:28:13 +0530
commite9b4fe8806c96c8a90c491997ff40bbe7ebae3c2 (patch)
tree4e7d9d9a6bde212394905a30e393c4cb85468fe8 /addons/thunderbird/partner/partner.py
parentd60336d76da7cdd1c8c0f8ce9499dec46ae8623a (diff)
[IMP]:Improvement message detail
bzr revid: ksa@tinyerp.co.in-20100920075813-jevp6wdw88dmd6q5
Diffstat (limited to 'addons/thunderbird/partner/partner.py')
-rw-r--r--addons/thunderbird/partner/partner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py
index fc59d4076e0..6421e239f2c 100644
--- a/addons/thunderbird/partner/partner.py
+++ b/addons/thunderbird/partner/partner.py
@@ -158,6 +158,7 @@ class thunderbird_partner(osv.osv_memory):
msg_pool = self.pool.get('mailgate.message')
msg_ids = msg_pool.search(cr, uid, [('message_id','=',message_id)])
res = {}
+ res_ids = []
if msg_ids and len(msg_ids):
return 0
@@ -170,7 +171,8 @@ class thunderbird_partner(osv.osv_memory):
if model_data:
res_id = int(model_data[0])
server_tools_pool.history_message(cr, uid, model, res_id, msg_new)
- return True
+ res_ids.append(res_id)
+ return len(res_ids)
def process_email(self, cr, uid, vals):
dictcreate = dict(vals)