diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-02-13 10:43:29 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-02-13 10:43:29 +0700 |
| commit | 3a53992e940724ccb1fbd72329c2db810b8fc83d (patch) | |
| tree | 96ce6f6717be998518102ff432493c3c06baff7b | |
| parent | 381a158a18e42fa41fada1ad3390222999041e39 (diff) | |
<iman> fix delete create company when reject company request
| -rw-r--r-- | indoteknik_custom/models/user_company_request.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/user_company_request.py b/indoteknik_custom/models/user_company_request.py index af8a86ba..9216e8eb 100644 --- a/indoteknik_custom/models/user_company_request.py +++ b/indoteknik_custom/models/user_company_request.py @@ -104,9 +104,9 @@ class UserCompanyRequest(models.Model): self.user_company_id.active = True user.send_company_switch_approve_mail() if vals.get('is_switch_account') == True else user.send_company_request_approve_mail() else: - new_company = self.env['res.partner'].create({ - 'name': self.user_input - }) + # new_company = self.env['res.partner'].create({ + # 'name': self.user_input + # }) # self.user_id.parent_id = new_company.id user.send_company_request_reject_mail() return super(UserCompanyRequest, self).write(vals) |
