From 32acd56002ba97da64e98b46c01062d0f2e8bddd Mon Sep 17 00:00:00 2001 From: dht-odoo Date: Thu, 12 Aug 2021 06:50:03 +0000 Subject: [PATCH] [FIX] website_slides_survey: add context to survey_id Before this commit when user quick create a certification, then it will create record in survey but not with certification equals to True. Due to which it will be excluded from domain and we will not able to find it in survey_id in elearning. With this commit we pass certification equals to true and scoring_type equals to scoring_without_answers in context of survey_id. So now, it will be not excluded in domain('certificate', '=', True) in elearning. Task Id: 2621296 closes odoo/odoo#75375 X-original-commit: 47894929591c7f46451242c1d0368094e2b3c295 Signed-off-by: Thibault Delavallee (tde) --- addons/website_slides_survey/views/slide_slide_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_slides_survey/views/slide_slide_views.xml b/addons/website_slides_survey/views/slide_slide_views.xml index 483d003094f..c3c013e2eed 100644 --- a/addons/website_slides_survey/views/slide_slide_views.xml +++ b/addons/website_slides_survey/views/slide_slide_views.xml @@ -8,7 +8,7 @@ + domain="[('certification', '=', True)]" context="{'default_certification': True, 'default_scoring_type': 'scoring_without_answers'}"/>