summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/api_v1/user.py')
-rw-r--r--indoteknik_api/controllers/api_v1/user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py
index 13a0a293..4e20e2c8 100644
--- a/indoteknik_api/controllers/api_v1/user.py
+++ b/indoteknik_api/controllers/api_v1/user.py
@@ -147,7 +147,7 @@ class User(controller.Controller):
user_data = {
'name': name,
'login': email,
- 'phone': phone,
+ 'mobile': phone,
'password': password,
'active': False,
'sel_groups_1_9_10': 9
@@ -155,7 +155,7 @@ class User(controller.Controller):
user = request.env['res.users'].create(user_data)
user.partner_id.email = email
- user.partner_id.phone = phone
+ user.partner_id.mobile = phone
if type_acc == 'business':
parameter = [