summaryrefslogtreecommitdiff
path: root/addons/auth_signup/models
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2018-08-17 11:18:00 +0200
committerYannick Tivisse <yti@odoo.com>2018-08-17 14:05:59 +0200
commitb10841d6158372a520f3838173924ff6a414d8d6 (patch)
tree61bddb7d98993313faf07cc8941a9deda1c4e74d /addons/auth_signup/models
parentd97e69ff0241af7403eef4a01f4dcf3f4e06963e (diff)
[IMP] auth_signup: Set self created users as customers
Since https://github.com/odoo/odoo/commit/9aaa32b6f62a95f58d11c17aefb4da4027371223 newly created users are not customers anymore. But users created from frontend (like in the ecommerce) should be customers. Specification ============= Portal users created from auth_signup should be customers.
Diffstat (limited to 'addons/auth_signup/models')
-rw-r--r--addons/auth_signup/models/res_users.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/auth_signup/models/res_users.py b/addons/auth_signup/models/res_users.py
index a7a5e187092..f7c35761987 100644
--- a/addons/auth_signup/models/res_users.py
+++ b/addons/auth_signup/models/res_users.py
@@ -144,6 +144,7 @@ class ResUsers(models.Model):
# create a copy of the template user (attached to a specific partner_id if given)
values['active'] = True
+ values['customer'] = True
try:
with self.env.cr.savepoint():
return template_user.with_context(no_reset_password=True).copy(values)