summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/user_merchant_request.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/user_merchant_request.py')
-rw-r--r--indoteknik_custom/models/user_merchant_request.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/user_merchant_request.py b/indoteknik_custom/models/user_merchant_request.py
index 7f6c5f3c..a373a771 100644
--- a/indoteknik_custom/models/user_merchant_request.py
+++ b/indoteknik_custom/models/user_merchant_request.py
@@ -70,6 +70,7 @@ class UserMerchantRequest(models.Model):
def write(self, vals):
is_approve = True if self.state_merchant == 'approved' or vals.get('state_merchant') == 'approved' else False
if is_approve:
+ # Informasi Perusahaan
self.user_company_id.name_merchant = self.merchant_id.name_merchant
self.user_company_id.pic_merchant = self.merchant_id.pic_merchant
self.user_company_id.address_merchant = self.merchant_id.address