[FIX] plugin: correct condition to match partners from emails.

correct copy/paste bug introduced in revid 9785 mat@openerp.com-20140122134728-558gkuhjpi2bc277

bzr revid: chs@openerp.com-20140124132450-cmx4acj6yei49aw7
This commit is contained in:
Christophe Simonis 2014-01-24 14:24:50 +01:00
commit 892325754e
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class plugin_handler(osv.osv_memory):
notify = _("Mail successfully pushed, a new %s has been created.") % model
else:
email_from = msg.get('email_from')
if email_from:
if not email_from:
author_id = False
else:
authors = mail_thread_obj.message_find_partner_from_emails(cr, uid, [res_id], [email_from])