[FIX] Pass True as parameter to 'email.template' send_mail method on action_reset_password as it's needed in order to send the mail (else send_mail returns the msg_id and delegates the send process to calling method)

bzr revid: vta@openerp.com-20121213122217-sou9gklbqspd4hcx
This commit is contained in:
vta vta@openerp.com 2012-12-13 13:22:17 +01:00
parent 8c3fadda34
commit 1eba13070c
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class res_users(osv.Model):
for user in self.browse(cr, uid, ids, context):
if not user.email:
raise osv.except_osv(_("Cannot send email: user has no email address."), user.name)
self.pool.get('email.template').send_mail(cr, uid, template.id, user.id, context=context)
self.pool.get('email.template').send_mail(cr, uid, template.id, user.id, True, context=context)
return True