diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-10-01 14:33:40 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-10-01 14:33:40 +0700 |
| commit | fba08fba49c8c885d2f087516892f0747922839a (patch) | |
| tree | cd4d36dbc7b7d12eb08d26efaf6f1d34e40a5843 /indoteknik_api/controllers/api_v1 | |
| parent | 471bfb3cff31dac389fd9b8cba5ec8b7e465c82f (diff) | |
<iman> update switch account
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py index 6f71174c..1528306f 100644 --- a/indoteknik_api/controllers/api_v1/user.py +++ b/indoteknik_api/controllers/api_v1/user.py @@ -433,6 +433,7 @@ class User(controller.Controller): nama_wajib_pajak = kw.get('nama_wajib_pajak', False) is_pkp = kw.get('is_pkp') type_acc = kw.get('type_acc', False) + parent_id = int(kw.get('parent_id',False)) response = { @@ -445,6 +446,8 @@ class User(controller.Controller): ('company_type', '=', 'company'), ('name', 'ilike', business_name) ] + if parent_id: + parameter = ['id', '=', parent_id] match_company = request.env['res.partner'].search(parameter, limit=1) match_ratio = 0 if match_company: |
