Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-891037-new-bde into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #891037 in OpenERP Addons: "hr_evaluation : survey of employee is not 
able to being  done and allows unlimited no. of time to answer"
  https://bugs.launchpad.net/openobject-addons/+bug/891037

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-891037-new-bde/+merge/86898

Hello Sir,

I have converted sur_name_read['store_ans'] from unicode to dict 
through safe_eval() function in survey/wizard/survey_answer.py 
in order to fix the bug.

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-891037-new-bde/+merge/86898
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-891037-new-bde.
=== modified file 'survey/wizard/survey_answer.py'
--- survey/wizard/survey_answer.py	2011-12-19 16:54:40 +0000
+++ survey/wizard/survey_answer.py	2011-12-26 13:03:26 +0000
@@ -563,7 +563,7 @@
             surv_name_wiz.write(cr, uid, [context.get('sur_name_id',False)], {'response' : tools.ustr(response_id)})
 
         #click first time on next button then increemnet on total start suvey
-        if not sur_name_read['store_ans']:
+        if not safe_eval(sur_name_read['store_ans']):
             his_id = self.pool.get('survey.history').create(cr, uid, {'user_id': uid, \
                                               'date': strftime('%Y-%m-%d %H:%M:%S'), 'survey_id': sur_name_read['survey_id'][0]})
             survey_id = sur_name_read['survey_id'][0]

_______________________________________________
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