[FIX] survey: fix prefill

It seems page_id is now a string instead of an int.

closes odoo/odoo#30639
This commit is contained in:
Thibault Delavallée
2019-01-29 09:12:49 +00:00
parent c273e89d55
commit 0598d975dc
+4
View File
@@ -225,6 +225,10 @@ class Survey(http.Controller):
return {}
survey_sudo, answer_sudo = access_data['survey_sudo'], access_data['answer_sudo']
try:
page_id = int(page_id)
except:
page_id = None
# Fetch previous answers
if page_id: