diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-01-13 10:27:17 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-01-13 10:27:17 +0000 |
| commit | 095dd98d3b5ea0f60497d6074eb04502df024415 (patch) | |
| tree | acc36cfa86d66b4e230aa5cf6830e2c6724d77a9 /indoteknik_custom/models/res_users.py | |
| parent | 46e968a3b28c00aa74e6f09b451d5a87e8523043 (diff) | |
| parent | 1c9308c1a18bd89612dc7fca5726cbf96c28deed (diff) | |
Merged in iman/pengajuan-tempo (pull request #264)
Iman/pengajuan tempo
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}' |
