[FIX] Survey next, previous consistency problem.
bzr revid: tta@openerp.com-20120718095503-97ib19d7xrt202fi
This commit is contained in:
parent
8a4acb3018
commit
2e3611d77f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue