diff --git a/addons/survey/static/src/js/survey.js b/addons/survey/static/src/js/survey.js index f18bb7194f1..7b069a4908c 100644 --- a/addons/survey/static/src/js/survey.js +++ b/addons/survey/static/src/js/survey.js @@ -17,6 +17,7 @@ */ $(document).ready(function () { + 'use strict'; console.debug("[survey] Custom JS for survey is loading..."); diff --git a/addons/survey/survey.py b/addons/survey/survey.py index 31434ade558..2224c5a6907 100644 --- a/addons/survey/survey.py +++ b/addons/survey/survey.py @@ -940,7 +940,7 @@ class survey_user_input_line(osv.osv): 'survey_id': question.survey_id.id, } if answer_tag in post: - vals.update({'answer_type': 'date', 'value_number': post[answer_tag]}) + vals.update({'answer_type': 'date', 'value_date': post[answer_tag]}) else: vals.update({'skipped': True}) old_uil = self.search(cr, uid, [('user_input_id', '=', user_input_id),