[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:
parent
8c3fadda34
commit
1eba13070c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue