From 48e92ac9569fe77d7832fb4a2e4f5c0d6a6942ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 8 Dec 2021 11:31:00 +0000 Subject: [PATCH] [FIX] website_event_questions: fix propagation from template A wrong field is used to control propagation of questions from event template to child events. Currently an event template must use automated emails to propagate its questions, instead of correctly checking the question enabled field ``use_questions``. As most templates use automated email this was not seen before. Task-2703285 (event performance) Task-2703289 (event testing) closes odoo/odoo#81098 X-original-commit: 10732e077d4bfc296ca59a9c3df613b9fd1cb275 Signed-off-by: Thibault Delavallee (tde) --- addons/website_event_questions/models/event_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_event_questions/models/event_event.py b/addons/website_event_questions/models/event_event.py index f22d374fb15..85c71355a74 100644 --- a/addons/website_event_questions/models/event_event.py +++ b/addons/website_event_questions/models/event_event.py @@ -36,7 +36,7 @@ class EventEvent(models.Model): * type lines are added; """ if self._origin.question_ids: - # lines to keep: those with already sent emails or registrations + # lines to keep: those with already given answers questions_tokeep_ids = self.env['event.registration.answer'].search( [('question_id', 'in', self._origin.question_ids.ids)] ).question_id.ids