diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-23 10:10:57 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-23 10:10:57 +0700 |
| commit | 5abf0ad2fb38fc2777fe04ab35bde1e81e0c6d38 (patch) | |
| tree | cdf7ec5c99568665b6119a7fb6712c6079b398ac | |
| parent | 3bb987d6dad51fb2b40d0ebec42c1143e8ee36ad (diff) | |
<iman> update contact to not connect to child
| -rw-r--r-- | indoteknik_custom/models/user_company_request.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indoteknik_custom/models/user_company_request.py b/indoteknik_custom/models/user_company_request.py index b02830bd..d540b0f6 100644 --- a/indoteknik_custom/models/user_company_request.py +++ b/indoteknik_custom/models/user_company_request.py @@ -35,14 +35,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 user.send_company_request_approve_mail() 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 + # self.user_id.parent_id = new_company.id user.send_company_request_reject_mail() return super(UserCompanyRequest, self).write(vals) |
