summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-02 11:48:15 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-02 11:48:15 +0700
commit795af0a07c28d5d407070734ef94b4838d05f793 (patch)
tree9ac058fa105777a946da851dd79aba5be5ac4f13 /indoteknik_custom/models
parent705f51eed8a817fe6ea3ef514402786d25f7c356 (diff)
<iman> update switch account
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/res_users.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/res_users.py b/indoteknik_custom/models/res_users.py
index 5e16aad1..16f94b37 100755
--- a/indoteknik_custom/models/res_users.py
+++ b/indoteknik_custom/models/res_users.py
@@ -41,6 +41,11 @@ class ResUsers(models.Model):
for user in self:
template.send_mail(user.id, force_send=True)
+ def send_company_switch_approve_mail(self):
+ template = self.env.ref('indoteknik_custom.mail_template_res_user_company_switch_approve')
+ for user in self:
+ template.send_mail(user.id, force_send=True)
+
def send_company_request_reject_mail(self):
template = self.env.ref('indoteknik_custom.mail_template_res_user_company_request_reject')
for user in self: