summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/res_users.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-20 12:20:43 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-20 12:20:43 +0700
commitd7a71c347eb3084416cf70c2010665a668491e48 (patch)
tree66ea726f592fcdd3ae93ccd652e20bb9dad154b4 /indoteknik_custom/models/res_users.py
parent1d5e4ca1fa58bcd59954a08b694f273d4c563cdf (diff)
parent1b2b27941fcdaa1b1b6ddf2a4851d358abb259eb (diff)
Merge branch 'odoo-production' into iman/telegram
# Conflicts: # indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/models/res_users.py')
-rwxr-xr-xindoteknik_custom/models/res_users.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/indoteknik_custom/models/res_users.py b/indoteknik_custom/models/res_users.py
index 5e16aad1..31b84ae3 100755
--- a/indoteknik_custom/models/res_users.py
+++ b/indoteknik_custom/models/res_users.py
@@ -36,16 +36,31 @@ class ResUsers(models.Model):
for user in self:
template.send_mail(user.id, force_send=True)
+ def send_company_request_mail_switch(self):
+ template = self.env.ref('indoteknik_custom.mail_template_res_user_company_request_switch')
+ for user in self:
+ template.send_mail(user.id, force_send=True)
+
def send_company_request_approve_mail(self):
template = self.env.ref('indoteknik_custom.mail_template_res_user_company_request_approve')
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:
template.send_mail(user.id, force_send=True)
+ def send_company_request_tempo_review(self):
+ template = self.env.ref('indoteknik_custom.mail_template_res_user_company_tempo_review')
+ for user in self:
+ template.send_mail(user.id, force_send=True)
+
def get_activation_token_url(self):
base_url = self.env['ir.config_parameter'].get_param('site.base.url')
return f'{base_url}/register?activation=token&amp;token={self.activation_token}'