summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/user_merchant_request.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-21 13:43:29 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-21 13:43:29 +0700
commitff20b62d6932c6be4ffb56f63f3c05be3aa72c06 (patch)
treeb9bfad89162ade294b904275feba80d74d9a7b26 /indoteknik_custom/models/user_merchant_request.py
parentc7f6d959e0e7a2e8adc45cff515f2b5666f3e732 (diff)
<iman> update merchant
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