summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-10-30 09:53:05 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-10-30 09:53:05 +0700
commit0831511787b1cd2171d6dd1dd6c2c9da46b64d2e (patch)
tree46b77b2098e35e1bdadba8d46aa2ebcbe61065e3 /indoteknik_api/controllers/api_v1
parent6a87a12ca305d22db5532d1c645b67e9c5bf9747 (diff)
Add get activation token url on activation mail template
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/user.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py
index b64e6830..848575e2 100644
--- a/indoteknik_api/controllers/api_v1/user.py
+++ b/indoteknik_api/controllers/api_v1/user.py
@@ -124,6 +124,7 @@ class User(controller.Controller):
}
user = request.env['res.users'].create(user_data)
+ user.partner_id.email = email
if company:
parameter = [
@@ -192,8 +193,8 @@ class User(controller.Controller):
response['reason'] = 'INVALID_TOKEN'
return self.response(response)
- # user.active = True
- # user.activation_token = ''
+ user.active = True
+ user.activation_token = ''
response.update({
'activation': True,
'user': self.response_with_token(user)