diff --git a/addons/auth_signup/res_users.py b/addons/auth_signup/res_users.py index b896e92558d..e393af29ba9 100644 --- a/addons/auth_signup/res_users.py +++ b/addons/auth_signup/res_users.py @@ -279,3 +279,9 @@ class res_users(osv.Model): ctx = dict(context, create_user=True) self.action_reset_password(cr, uid, [user.id], context=ctx) return user_id + + def copy(self, cr, uid, id, default=None, context=None): + if not default or not default.get('email'): + # avoid sending email to the user we are duplicating + context = dict(context or {}, reset_password=False) + return super(res_users, self).copy(cr, uid, id, default=default, context=context)