From 09ff6a7ea7860698c736afd926b7d249b1509de9 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Thu, 29 Aug 2024 13:37:13 +0700 Subject: update phone number missing at web --- indoteknik_api/controllers/api_v1/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_api/controllers/api_v1') 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 = [ -- cgit v1.2.3