summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/user_company_request.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/user_company_request.py b/indoteknik_custom/models/user_company_request.py
index 2467261a..7d28d7ed 100644
--- a/indoteknik_custom/models/user_company_request.py
+++ b/indoteknik_custom/models/user_company_request.py
@@ -22,6 +22,11 @@ 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.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
+ self.user_id.nama_wajib_pajak = self.user_company_id.nama_wajib_pajak
+ self.user_id.alamat_lengkap_text = self.user_company_id.alamat_lengkap_text
else:
new_company = self.env['res.partner'].create({
'name': self.user_input