diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-12-02 09:31:13 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-12-02 09:31:13 +0700 |
| commit | 6fbfe31167e6eb66d4995374dadb14774026e8c7 (patch) | |
| tree | 044465ba37c6c6bc47ca2f0d6729ef6a64836397 /indoteknik_custom/models/res_users.py | |
| parent | 07c14fedc459106189d040e7724e6d7f81051658 (diff) | |
<iman> pengajuan tempo update
Diffstat (limited to 'indoteknik_custom/models/res_users.py')
| -rwxr-xr-x | indoteknik_custom/models/res_users.py | 5 |
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..fb9e8bfb 100755 --- a/indoteknik_custom/models/res_users.py +++ b/indoteknik_custom/models/res_users.py @@ -46,6 +46,11 @@ class ResUsers(models.Model): 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&token={self.activation_token}' |
