fsm_visit_confirmation: ensure token before sending email
This commit is contained in:
parent
2322dbaae1
commit
57b401ca1a
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue