diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-02-06 09:46:46 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-02-06 09:46:46 +0100 |
| commit | 0c9b8cd7af478e9f105534627fdb2be38d8c92f0 (patch) | |
| tree | d8de22a7cadd779dbad15bb3cc3584ee4784875b | |
| parent | 972b02397af24512b653a63124760e120a051ee6 (diff) | |
[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.
| -rw-r--r-- | addons/survey/wizard/survey_answer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
