[IMP]pms-api-rest: url field changed to url param in send reset mail password service

This commit is contained in:
braisab
2023-05-23 17:41:54 +02:00
committed by Darío Lodeiros
parent b94dd00615
commit 94d832e3b3
8 changed files with 2 additions and 132 deletions

View File

@@ -172,7 +172,7 @@ class PmsRoomTypeClassService(Component):
return False
expiration_datetime = datetime.now() + timedelta(minutes=15)
user.partner_id.sudo().signup_prepare(expiration=expiration_datetime)
template.send_mail(user.id, force_send=True)
template.with_context({'app_url': input_data.url}).send_mail(user.id, force_send=True)
return True
return False