[FIX] hr : survey of employee is not able to being done and allows unlimited no. of time to answer

lp bug: https://launchpad.net/bugs/891037 fixed

bzr revid: bde@tinyerp.com-20111226125747-kvgt5bpe6deb1eu7
This commit is contained in:
Bharat Devnani (OpenERP)
2011-12-26 18:27:47 +05:30
parent 052223704b
commit 3178ba7e08
+1 -1
View File
@@ -563,7 +563,7 @@ class survey_question_wiz(osv.osv_memory):
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]