[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:
parent
c738228631
commit
a3a0d3dbbf
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue