diff --git a/controllers/survey.py b/controllers/survey.py
index 7a70c592f67c6253df521ba55f871d2968f0c680..a92cecd6f5fdd104f4fc2ef91eadf4a28091b74d 100644
--- a/controllers/survey.py
+++ b/controllers/survey.py
@@ -45,7 +45,7 @@ class TrainingSurvey(Survey):
         if (
             survey_sudo.survey_type == "training"
             and survey_sudo.training_survey_type == "subscribe"
-            and not (training_id or survey_sudo.training_id)
+            and not (training_id or (answer_sudo and answer_sudo.training_id))
         ):
             return request.env["ir.qweb"]._render(
                 "training_survey.survey_message",