Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

安装aeroo report时的问题



  • 我想测试一下aeroo report,看看是不是更好用,但是过程中碰到一些问题:<br />一,第一个报错,具体什么忘了,(记起来的时候一定不上,不好意思)记得好像要修改一下文件:report_aeroo_direct_print/openerp.py:就是添加一行:“installer.xml”<br />[quote]'update_xml': ["data/report_aeroo_direct_data.xml",<br />   "installer.xml",#就是添加这一行。<br />                                  "report_aeroo_direct_print_view.xml",<br />                                  "installer.xml",<br />                                    "security/security_rules.xml",<br />                                  "security/ir.model.access.csv"],[/quote]<br /><br />二,第二个报错:点击“print screen”时,报错信息如下:<br />[quote]Aeroo Reports: Error while generating the report "name of the report"<br /><br />13-04-20 10:15:36,721 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [01]: <br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [02]: Environment Information : <br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [03]: System : Linux-3.5.0-27-generic-i686-with-Ubuntu-12.10-quantal<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [04]: OS Name : posix<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [05]: Distributor ID: Ubuntu<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [06]: Description: Ubuntu 12.10<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [07]: Release: 12.10<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [08]: Codename: quantal<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [09]: Operating System Release : 3.5.0-27-generic<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [10]: Operating System Version : #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [11]: Operating System Architecture : 32bit<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [12]: Operating System Locale : it_IT.UTF-8<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [13]: Python Version : 2.7.3<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [14]: OpenERP-Server Version : 7.0<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [15]: Report generation error!<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [16]: Traceback (most recent call last):<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [17]: File "/home/openerp/addons/report_aeroo/report_aeroo.py", line 439, in create_aeroo_report<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [18]: data = basic.generate(**oo_parser.localcontext).render().getvalue()<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [19]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/base.py", line 51, in render<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [20]: return self.serializer(self.events)<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [21]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/opendocument.py", line 1202, in call<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [22]: content = TContent(serialized_stream)<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [23]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/opendocument.py", line 808, in init<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [24]: self.tree = lxml.etree.parse(StringIO(content))<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [25]: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 13593: ordinal not in range(128)<br />2013-04-20 10:15:36,725 5868 ERROR gmc openerp.service.web_services: Exception: (u'Aeroo Reports: Error while generating the report "Sample Report".', UnicodeEncodeError('ascii', u'<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="ur<br /><br />...<br />cut<br />...<br /><br />tt\xf5s .</text:p></text:section><text:section text:style-name="Sect2" text:name="Section2"><text:p text:style-name="P9"/></text:section></office:text></office:body></office:document-content>', 13593, 13594, 'ordinal not in range(128)'))[/quote]<br />解决方案是:genshi的版本问题:只能是0.6.x版本,不能太高也不能太低。查看方法:<br />      import genshi<br />      print genshi.version<br />附件附上genshi 0.6.1版本<br />希望对大家有用,谢谢。<br /><br />



  • 我想测试一下aeroo report,看看是不是更好用,但是过程中碰到一些问题:<br />一,第一个报错,具体什么忘了,(记起来的时候一定不上,不好意思)记得好像要修改一下文件:report_aeroo_direct_print/openerp.py:就是添加一行:“installer.xml”<br />[quote]'update_xml': ["data/report_aeroo_direct_data.xml",<br />   "installer.xml",#就是添加这一行。<br />                                  "report_aeroo_direct_print_view.xml",<br />                                  "installer.xml",<br />                                    "security/security_rules.xml",<br />                                  "security/ir.model.access.csv"],[/quote]<br /><br />二,第二个报错:点击“print screen”时,报错信息如下:<br />[quote]Aeroo Reports: Error while generating the report "name of the report"<br /><br />13-04-20 10:15:36,721 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [01]: <br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [02]: Environment Information : <br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [03]: System : Linux-3.5.0-27-generic-i686-with-Ubuntu-12.10-quantal<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [04]: OS Name : posix<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [05]: Distributor ID: Ubuntu<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [06]: Description: Ubuntu 12.10<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [07]: Release: 12.10<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [08]: Codename: quantal<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [09]: Operating System Release : 3.5.0-27-generic<br />2013-04-20 10:15:36,722 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [10]: Operating System Version : #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [11]: Operating System Architecture : 32bit<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [12]: Operating System Locale : it_IT.UTF-8<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [13]: Python Version : 2.7.3<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [14]: OpenERP-Server Version : 7.0<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [15]: Report generation error!<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [16]: Traceback (most recent call last):<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [17]: File "/home/openerp/addons/report_aeroo/report_aeroo.py", line 439, in create_aeroo_report<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [18]: data = basic.generate(**oo_parser.localcontext).render().getvalue()<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [19]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/base.py", line 51, in render<br />2013-04-20 10:15:36,723 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [20]: return self.serializer(self.events)<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [21]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/opendocument.py", line 1202, in call<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [22]: content = TContent(serialized_stream)<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [23]: File "/usr/local/lib/python2.7/dist-packages/aeroolib-1.0.0.RC4-py2.7.egg/aeroolib/plugins/opendocument.py", line 808, in init<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [24]: self.tree = lxml.etree.parse(StringIO(content))<br />2013-04-20 10:15:36,724 5868 ERROR gmc openerp.loglevels.deprecated.report_aeroo: [25]: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 13593: ordinal not in range(128)<br />2013-04-20 10:15:36,725 5868 ERROR gmc openerp.service.web_services: Exception: (u'Aeroo Reports: Error while generating the report "Sample Report".', UnicodeEncodeError('ascii', u'<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="ur<br /><br />...<br />cut<br />...<br /><br />tt\xf5s .</text:p></text:section><text:section text:style-name="Sect2" text:name="Section2"><text:p text:style-name="P9"/></text:section></office:text></office:body></office:document-content>', 13593, 13594, 'ordinal not in range(128)'))[/quote]<br />解决方案是:genshi的版本问题:只能是0.6.x版本,不能太高也不能太低。查看方法:<br />      import genshi<br />      print genshi.version<br />附件附上genshi 0.6.1版本<br />希望对大家有用,谢谢。<br /><br />



  • 可以这样安装 easy_install genshi==0.6.1<br /><br />aeroo report 真的很好用。<br /><br /><br />$ at the moment Aeroo Reports is not compatible with Genshi 0.7.x, (support in the roadmap for next version). For now use Genshi 0.6.x instead.



  • @winson97,<br />windows下可以用ms office 做模板吗?<br />请问哪里有好的文档?



  • windows 下没试过<br /><br />doc不能做模板,office文档要先转为.odt, .ods,但可以输出doc,xls<br /><br />文档在这:http://www.alistek.com/wiki/index.php/Main_Page



  • 都很厉害



  • 今天 遇到可 莫名其妙的安装问题 , 跟楼主 描述的不一样, <br /><br />不知道怎么处理 <br /><br />但是  也是 genshi==0.6.1  的问题, 改了后 就搞定了,<br /><br />谢谢你们


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待