From 2ac230b25b9f02ff17970e6e187ca81008a07d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 8 Dec 2021 12:01:04 +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-2702872 (Event precompute) Part-of: odoo/odoo#80672 --- 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 87e16f663c0..f22d374fb15 100644 --- a/addons/website_event_questions/models/event_event.py +++ b/addons/website_event_questions/models/event_event.py @@ -52,7 +52,7 @@ class EventEvent(models.Model): command = [(3, question.id) for question in questions_toremove] else: command = [(5, 0)] - if event.event_type_id.event_type_mail_ids: + if event.event_type_id.question_ids: command += [ (0, 0, { 'title': question.title,