Jigar Amin  (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-862344-jam into 
lp:openobject-addons.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-862344-jam/+merge/77652

Changes : Bug FIX :
 - Bug #862344 - Answer a survey is not seems like working.
Kindly review this.
Thank You



-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-862344-jam/+merge/77652
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-862344-jam.
=== modified file 'survey/wizard/survey_answer.py'
--- survey/wizard/survey_answer.py	2011-09-27 20:28:43 +0000
+++ survey/wizard/survey_answer.py	2011-09-30 07:26:57 +0000
@@ -30,6 +30,7 @@
 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 @@
 
             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]

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to