[BUG/FIX] survey : safe_evaling the dict of the stored answer in select survey wizard defalt_get

bzr revid: jam@tinyerp.com-20110930072004-vkev6k0bsr6imld4
This commit is contained in:
Jigar Amin - OpenERP 2011-09-30 12:50:04 +05:30
parent 8507f7cc4a
commit 77f51325c6
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from osv import fields
from tools import to_xml
from tools.translate import _
import addons
from tools.safe_eval import safe_eval
class survey_question_wiz(osv.osv_memory):
_name = 'survey.question.wiz'
@ -522,7 +523,7 @@ class survey_question_wiz(osv.osv_memory):
sur_name_read = surv_name_wiz.read(cr, uid, context.get('sur_name_id',False))
ans_list = []
for key,val in sur_name_read['store_ans'].items():
for key,val in safe_eval(sur_name_read.get('store_ans',"{}")).items():
for field in fields_list:
if field in list(val):
value[field] = val[field]