From 8ed2a7e68abd754b6fc3721103a2c5572c0a2e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 7 Jan 2019 14:25:52 +0000 Subject: [PATCH] [FIX] survey: allow debug parameter in testing route Adding kwargs in test route of surveys allow notably to avoid crashing when working in debug mode and testing surveys. closes odoo/odoo#29996 --- addons/survey/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index a6181e87c70..80ee03d0dcf 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -49,7 +49,7 @@ class Survey(http.Controller): return None @http.route('/survey/test/', type='http', auth='user', website=True) - def survey_test(self, survey, token=None): + def survey_test(self, survey, token=None, **kwargs): """ Test mode for surveys: create a test answer, only for managers or officers testing their surveys """ if request.env.user.has_group('survey.group_survey_manager') or \