diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-30 09:53:05 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-30 09:53:05 +0700 |
| commit | 0831511787b1cd2171d6dd1dd6c2c9da46b64d2e (patch) | |
| tree | 46b77b2098e35e1bdadba8d46aa2ebcbe61065e3 /indoteknik_api/controllers/api_v1/user.py | |
| parent | 6a87a12ca305d22db5532d1c645b67e9c5bf9747 (diff) | |
Add get activation token url on activation mail template
Diffstat (limited to 'indoteknik_api/controllers/api_v1/user.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/user.py | 5 |
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) |
