[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
This commit is contained in:
Thibault Delavallée
2019-01-07 14:27:20 +00:00
parent 77396a23ad
commit 8ed2a7e68a
+1 -1
View File
@@ -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 \