[FIX] Survey

lp bug: https://launchpad.net/bugs/1052079 fixed

bzr revid: api@openerp.com-20121210152833-6waodc9cj1ffq8ye
This commit is contained in:
Arnaud Pineux 2012-12-10 16:28:33 +01:00
parent 590add54d4
commit 9fcac4fa62
1 changed files with 2 additions and 2 deletions

View File

@ -522,10 +522,10 @@ class survey_question_wiz(osv.osv_memory):
value[field] = ans.value
if que.comment and (field.split('_')[1] == "comment" or field.split('_')[1] == "other"):
value[field] = str(que.comment)
value[field] = tools.ustr(que.comment)
elif que.single_text and field.split('_')[1] == "single":
value[field] = str(que.single_text)
value[field] = tools.ustr(que.single_text)
elif que.response_answer_ids and len(field.split('_')) == 3 and field.split('_')[1] == "selection":
for ans in que.response_answer_ids: