summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/user.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-08 15:24:18 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-08 15:24:18 +0700
commit2fcddbb073a04ed6ba0e9666a8ab5082a3ef4073 (patch)
treed4a3a423adf53ea8c086397abbcfe05a369fe637 /indoteknik_api/controllers/api_v1/user.py
parentec1e2331be248a505d89c00244d6b0fe5bd61c26 (diff)
parentce1c714c95f68b07f9b891600ba1e3b88288652c (diff)
Merge branch 'production' into iman/telegram
# Conflicts: # indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_api/controllers/api_v1/user.py')
-rw-r--r--indoteknik_api/controllers/api_v1/user.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py
index 52d773e2..c7bfe91a 100644
--- a/indoteknik_api/controllers/api_v1/user.py
+++ b/indoteknik_api/controllers/api_v1/user.py
@@ -94,7 +94,13 @@ class User(controller.Controller):
user = request.env['res.users'].create(user_data)
user.partner_id.email = email
-
+ user.partner_id.customer_type = 'nonpkp'
+ user.partner_id.npwp = '0.000.000.0-000.000'
+ user.partner_id.sppkp = '-'
+ user.partner_id.nama_wajib_pajak = user.name
+ user.partner_id.user_id = 3222
+ user.partner_id.property_account_receivable_id = 395
+ user.partner_id.property_account_payable_id = 438
data = {
'is_auth': True,
'user': self.response_with_token(user)
@@ -149,6 +155,7 @@ class User(controller.Controller):
'name': name,
'login': email,
'mobile': phone,
+ 'phone': phone,
'password': password,
'active': False,
'sel_groups_1_9_10': 9