From d628ec05edbe81f43fba31df79b554200b6ca332 Mon Sep 17 00:00:00 2001 From: Dharmraj Jhala Date: Thu, 23 Jan 2020 05:15:29 +0000 Subject: [PATCH] [FIX] survey: fix incorrect behavior while retaking the test survey Before this commit, while retaking a survey with 'Retry' button, the test mode was not retained leading to unexpected behavior. This commit fixes the issue by populating required parameters while retrying the survey that ensures proper behavior for both test and non-test entries. Task ID 2170720 Closes #43806 closes odoo/odoo#44187 X-original-commit: 65d77b7101acf63fb4316187b5fd94b050b945c3 Signed-off-by: Thibault Delavallee (tde) --- addons/survey/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index b34ffda375e..2c043b2300c 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -208,6 +208,7 @@ class Survey(http.Controller): partner=answer_sudo.partner_id, email=answer_sudo.email, invite_token=answer_sudo.invite_token, + test_entry=answer_sudo.test_entry, **self._prepare_retry_additional_values(answer_sudo) ) except: