[FIX] auth_signup: do not send set_password email at user signup
authorChristophe Simonis <chs@openerp.com>
Tue, 26 Nov 2013 16:16:58 +0000 (17:16 +0100)
committerChristophe Simonis <chs@openerp.com>
Tue, 26 Nov 2013 16:16:58 +0000 (17:16 +0100)
bzr revid: chs@openerp.com-20131126161658-9yvocjcrvbvqc51l

addons/auth_signup/res_users.py

index 38beb08..a9469e4 100644 (file)
@@ -234,6 +234,7 @@ class res_users(osv.Model):
 
         # create a copy of the template user (attached to a specific partner_id if given)
         values['active'] = True
+        context = dict(context or {}, no_reset_password=True)
         return self.copy(cr, uid, template_user_id, values, context=context)
 
     def reset_password(self, cr, uid, login, context=None):