[IMP] improved code
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Thu, 21 Jun 2012 06:23:33 +0000 (11:53 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Thu, 21 Jun 2012 06:23:33 +0000 (11:53 +0530)
bzr revid: tpa@tinyerp.com-20120621062333-qv7hblle9l6huch1

addons/mail/mail_thread.py

index 08eaad8..644b52d 100644 (file)
@@ -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: