fsm_visit_confirmation: ensure token before sending email

This commit is contained in:
Marc Durepos 2025-02-27 14:36:19 -05:00
parent 2322dbaae1
commit 57b401ca1a

View file

@ -17,6 +17,7 @@ class ProjectTask(models.Model):
lambda task: task.stage_id != old_stages[task.id]
and task.stage_id.approval_template_id
):
task._portal_ensure_token()
task.stage_id.approval_template_id.send_mail(
task.id,
force_send=True,