summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-01-07 14:25:52 +0000
committerThibault Delavallée <tde@odoo.com>2019-01-07 14:27:20 +0000
commit8ed2a7e68abd754b6fc3721103a2c5572c0a2e02 (patch)
tree66ae7c0ae89cc18c333d2bf8dc046c770c5b2260 /addons
parent77396a23ad7032ad31b13cefbf401fd53e34b568 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/survey/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
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/<model("survey.survey"):survey>', 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 \