diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-19 09:57:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-19 09:57:39 +0700 |
| commit | c1d1b273e2eeb3c4713fe174846ec7687ec2026b (patch) | |
| tree | 5da911699313c89316ca1199c4312c2220384165 /indoteknik_custom/models/user_company_request.py | |
| parent | d299eca8138b07dcbddf540038b8deeb4fcc7c8a (diff) | |
<iman> update new register
Diffstat (limited to 'indoteknik_custom/models/user_company_request.py')
| -rw-r--r-- | indoteknik_custom/models/user_company_request.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/user_company_request.py b/indoteknik_custom/models/user_company_request.py index 56bb8d5d..40ac4446 100644 --- a/indoteknik_custom/models/user_company_request.py +++ b/indoteknik_custom/models/user_company_request.py @@ -33,10 +33,12 @@ class UserCompanyRequest(models.Model): self.user_id.property_account_receivable_id = self.user_company_id.property_account_receivable_id self.user_id.property_account_payable_id = self.user_company_id.property_account_payable_id self.user_company_id.active = True + # tambahkan send email kalau bisnis berhsil di buat else: new_company = self.env['res.partner'].create({ 'name': self.user_input }) self.user_id.parent_id = new_company.id + # tambahkan send email kalau bisnis ditolak di buat return super(UserCompanyRequest, self).write(vals)
\ No newline at end of file |
