在openerp 7中,我使用aeroo报告生成xls报告,创建了包含数据作为输入文件的ods文件,并以xls作为输出。

我使用python函数返回阿拉伯字符串,
def _test(self, data):
res=[]
for item in data :
month_move=datetime.strptime(str(item.date), '%Y-%m-%d %H:%M:%S').year
if month_move == date.today().year:
res.append(item)
return res,'الاتبللا'我有一个日期是一个阿拉伯字母,当我试图打印报告时,我得到了这个错误信息:
Aeroo Reports: Error while generating the report. ascii

如果我使用这个函数,我会得到这个错误,但是如果我不使用它,报告就会正确地生成,
我使用了Genshi软件包版本6.0、libreoffice版本5.1、openerp版本7和python版本2.7
原谅我的英语不好,谢谢你的帮助

发布于 2016-06-02 21:08:13
https://stackoverflow.com/questions/37597500
复制相似问题