更改报表输出文件名的方法
-
修改文件:client\bin\printer\printer.py
if data['format'] in printer.openers.keys():
import tempfile
if data['format']=='html' and os.name=='nt':
data['format']='doc'
- (fileno, fp_name) = tempfile.mkstemp('.'+data['format'], 'openerp_')
+ (fileno, fp_name) = tempfile.mkstemp('.'+data['format'], 'print_')
fp = file(fp_name, 'wb+')
fp.write(content)
fp.close()
os.close(fileno)