From cf8a62b526c1a9a390b04de86e445fbaa67f057c Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Wed, 7 May 2025 09:52:48 +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 691ea2a..7a70c59 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 + and not (training_id or survey_sudo.training_id) ): return request.env["ir.qweb"]._render( "training_survey.survey_message", -- GitLab