diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index ac830ea03e7..da462a0aabc 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -139,7 +139,7 @@ class Survey(http.Controller): return request.redirect('/survey/start/%s?token=%s' % (survey_sudo.id, answer_sudo.token)) @http.route('/survey/start/', type='http', auth='public', website=True) - def survey_start(self, survey_id, token=None, email=False): + def survey_start(self, survey_id, token=None, email=False, **post): """ Start a survey by providing a token linked to an answer or generate a new token if access is allowed """ access_data = self._get_access_data(survey_id, token, ensure_token=False) @@ -170,7 +170,7 @@ class Survey(http.Controller): return request.redirect('/survey/fill/%s/%s' % (survey_sudo.id, answer_sudo.token)) @http.route('/survey/fill//', type='http', auth='public', website=True) - def survey_display_page(self, survey_id, token, prev=None): + def survey_display_page(self, survey_id, token, prev=None, **post): access_data = self._get_access_data(survey_id, token, ensure_token=True) if access_data['validity_code'] is not True: return self._redirect_with_error(access_data, access_data['validity_code']) @@ -204,7 +204,7 @@ class Survey(http.Controller): return request.render("survey.403", {'survey': survey_sudo}) @http.route('/survey/prefill//', type='http', auth='public', website=True) - def survey_get_answers(self, survey_id, token, page_id=None): + def survey_get_answers(self, survey_id, token, page_id=None, **post): """ TDE NOTE: original comment: # AJAX prefilling of a survey -> AJAX / http ?? """ access_data = self._get_access_data(survey_id, token, ensure_token=True) if access_data['validity_code'] is not True: @@ -248,7 +248,7 @@ class Survey(http.Controller): return json.dumps(ret, default=str) @http.route('/survey/scores//', type='http', auth='public', website=True) - def survey_get_scores(self, survey_id, token, page_id=None): + def survey_get_scores(self, survey_id, token, page_id=None, **post): """ TDE NOTE: original comment: # AJAX scores loading for quiz correction mode -> AJAX / http ?? """ access_data = self._get_access_data(survey_id, token, ensure_token=True) if access_data['validity_code'] is not True: