summaryrefslogtreecommitdiff
path: root/addons/auth_signup/models/res_users.py
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-06-22 11:11:21 +0200
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-06-25 08:37:24 +0200
commit2e4a75cbee162381c814ccc3e07d61c35dc88485 (patch)
treef8359482f53d02a8c18da97171698925d430e573 /addons/auth_signup/models/res_users.py
parentf9737d79e77e9abf634c8eaa4b6ea331e2aa814d (diff)
[FIX] auth_signup: do not send email to duplicated user
When duplicating a user, an email was sent to a user at the email of the previous user (as the create is called before changing the email). opw-1853359
Diffstat (limited to 'addons/auth_signup/models/res_users.py')
-rw-r--r--addons/auth_signup/models/res_users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_signup/models/res_users.py b/addons/auth_signup/models/res_users.py
index b58606b73ab..8530f36f325 100644
--- a/addons/auth_signup/models/res_users.py
+++ b/addons/auth_signup/models/res_users.py
@@ -155,5 +155,5 @@ class ResUsers(models.Model):
sup = super(ResUsers, self)
if not default or not default.get('email'):
# avoid sending email to the user we are duplicating
- sup = super(ResUsers, self.with_context(reset_password=False))
+ sup = super(ResUsers, self.with_context(no_reset_password=True))
return sup.copy(default=default)