From 1eba13070c9f7b69cf8f35b538bca16b677e3bdd Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Thu, 13 Dec 2012 13:22:17 +0100 Subject: [PATCH] [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 --- addons/auth_signup/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/auth_signup/res_users.py b/addons/auth_signup/res_users.py index 5fd7917f444..4da88315466 100644 --- a/addons/auth_signup/res_users.py +++ b/addons/auth_signup/res_users.py @@ -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