diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-09-23 03:12:09 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-09-23 03:12:09 +0000 |
| commit | 8dc8d4abd5d18778e2f54324338c21893441f29c (patch) | |
| tree | 836464391575e275140eeb6d85fccee52cd98bf6 | |
| parent | d89ee26b54212ad5f4c1d45d71f6b2292102a682 (diff) | |
| parent | 5abf0ad2fb38fc2777fe04ab35bde1e81e0c6d38 (diff) | |
Merged in iman/new-register (pull request #228)
<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) |
