From edc72376cdfd45b073122f5d19e03f5e77dd5a1c Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Wed, 7 May 2025 09:57:54 +0200 Subject: [PATCH] [FIX] survey user input subscription with training_id --- controllers/survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/survey.py b/controllers/survey.py index 7a70c59..a92cecd 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", -- GitLab