[FIX] mail: res was not created if there are no email in email_list when sending emails

bzr revid: tde@openerp.com-20130726101008-whwcl1ssh2fsxhbw
This commit is contained in:
Thibault Delavallée 2013-07-26 12:10:08 +02:00
parent c738228631
commit a3a0d3dbbf
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ class mail_mail(osv.Model):
email_list.append(self.send_get_email_dict(cr, uid, mail, context=context))
# build an RFC2822 email.message.Message object and send it without queuing
res = None
for email in email_list:
msg = ir_mail_server.build_email(
email_from = mail.email_from,