diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-28 10:43:58 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-28 10:43:58 +0700 |
| commit | b1af79a0ed73a7af2557c8269d82bbc99afaa601 (patch) | |
| tree | 6bf2ef8aec570bcb05b59a504ebeece215383845 /indoteknik_custom/models/user_company_request.py | |
| parent | 56f2deda9cdf2a51d5a53aade7758a0ac9313e05 (diff) | |
| parent | 58bec36c52b223c12fd15511a56ab417ebbd7257 (diff) | |
Merge branch 'production' into iman/switch-account
# Conflicts:
# indoteknik_api/models/res_users.py
Diffstat (limited to 'indoteknik_custom/models/user_company_request.py')
| -rw-r--r-- | indoteknik_custom/models/user_company_request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/user_company_request.py b/indoteknik_custom/models/user_company_request.py index 86e66934..dd9a35c1 100644 --- a/indoteknik_custom/models/user_company_request.py +++ b/indoteknik_custom/models/user_company_request.py @@ -74,7 +74,7 @@ class UserCompanyRequest(models.Model): if not self.is_approve and is_approve: if is_approve == 'approved': - self.user_id.parent_id = self.user_company_id.id + self.user_id.parent_id = vals.get('user_company_id') if vals.get('user_company_id') else self.user_company_id.id self.user_id.customer_type = self.user_company_id.customer_type self.user_id.npwp = self.user_company_id.npwp self.user_id.sppkp = self.user_company_id.sppkp |
