diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-13 13:35:16 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-13 13:35:16 +0700 |
| commit | 7dd310eed8f726982e3df3934d85e844b14526c3 (patch) | |
| tree | f2105196d6e5866b3d3480bb71580859d0568ccb | |
| parent | 2bfd68b9145f064f1e231a2d674ea9faa39e1456 (diff) | |
<iman> update set parent berdasarkan vals company id
| -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 |
