From 0c9b8cd7af478e9f105534627fdb2be38d8c92f0 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 6 Feb 2015 09:46:46 +0100 Subject: [PATCH] [FIX] survey: write expects a list of integers for ids arg This is related to rev. 972b02397af24512b653a63124760e120a051ee6 The reason is the same than in the above related rev. --- addons/survey/wizard/survey_answer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/wizard/survey_answer.py b/addons/survey/wizard/survey_answer.py index 966b27458e3..ffdf9f6f1b8 100644 --- a/addons/survey/wizard/survey_answer.py +++ b/addons/survey/wizard/survey_answer.py @@ -988,7 +988,7 @@ class survey_question_wiz(osv.osv_memory): if val and key.split('_')[1] == "commentcolumn" and key.split('_')[0] == sur_name_read['store_ans'][update]['question_id']: for res_id in response_list: if key.split('_')[2] in res_id.split('_')[1]: - a = res_ans_obj.write(cr, uid, [res_id.split('_')[0]], {'comment_field':val}) + a = res_ans_obj.write(cr, uid, [int(res_id.split('_')[0])], {'comment_field':val}) sur_name_read['store_ans'][update].update({key:val}) if comment_field and comment_value: