[IMP]pms_api_rest: added mail template to reset paswword

This commit is contained in:
braisab
2023-05-29 14:12:43 +02:00
committed by Darío Lodeiros
parent 94d832e3b3
commit 932f01f9e2
3 changed files with 101 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ class PmsRoomTypeClassService(Component):
def send_mail_to_reset_password(self, input_data):
user = self.env["res.users"].sudo().search([("email", "=", input_data.userEmail)])
if user:
template_id = self.env.ref("pms.pms_reset_password_email").id
template_id = self.env.ref("pms_api_rest.pms_reset_password_email").id
template = self.env['mail.template'].sudo().browse(template_id)
if not template:
return False