[FIX] Survey next, previous consistency problem.

bzr revid: tta@openerp.com-20120718095503-97ib19d7xrt202fi
This commit is contained in:
Tejas Tank 2012-07-18 15:25:03 +05:30
parent 8a4acb3018
commit 2e3611d77f
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ from tools import to_xml
from tools.translate import _
import addons
from tools.safe_eval import safe_eval
import ast
class survey_question_wiz(osv.osv_memory):
_name = 'survey.question.wiz'
@ -597,6 +598,7 @@ class survey_question_wiz(osv.osv_memory):
self.pool.get(context.get('object',False)).survey_req_done(cr, uid, [int(context.get('cur_id'))], context)
else:
self.pool.get(context.get('object',False)).write(cr, uid, [int(context.get('cur_id',False))], {'response' : response_id})
sur_name_read['store_ans'] = ast.literal_eval(sur_name_read['store_ans'])
if sur_name_read['store_ans'] and type(sur_name_read['store_ans']) == dict:
for key,val in sur_name_read['store_ans'].items():
for field in vals: