From f64fa15ec072c06001fdc199f965e35bfca8dd2c Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Thu, 21 Jun 2012 11:53:33 +0530 Subject: [PATCH] [IMP] improved code bzr revid: tpa@tinyerp.com-20120621062333-qv7hblle9l6huch1 --- 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 08eaad8..644b52d 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -457,7 +457,7 @@ class mail_thread(osv.osv): if alias.alias_user_id: user_id = alias_id.alias_user_id.id #if user_id not defined in the alias then search related user using name of Email sender - else if: + else: frm = msg.get('from') user_ids = user_obj.search(cr, uid, [('name','=',frm)], context) if user_ids: -- 1.7.10.4