[FIX] survey: solved bug in answer wizard--fix=lp:668041

bzr revid: ssi@tinyerp.com-20101103071157-80ioi8acjvp28nye
This commit is contained in:
ssi
2010-11-03 12:41:57 +05:30
parent 53a548f6a1
commit a444bf77e9
+2 -1
View File
@@ -457,7 +457,8 @@ class survey_question_wiz(osv.osv_memory):
try:
service = netsvc.LocalService(report_name);
(result, format) = service.create(cr, uid, res_ids, {}, context)
fp = open(addons.get_module_resource('survey', 'report') + file_name + '.pdf', 'wb+');
ret_file_name = addons.get_module_resource('survey', 'report') + file_name + '.pdf'
fp = open(ret_file_name, 'wb+');
fp.write(result);
fp.close();