PDF 报表中文支持模块:base_report_cn
-
[quote]原帖由 [i]trempcn[/i] 于 2009-8-3 10:56 发表 www.shine-it.net/redirect.php?goto=findpost&pid=2559&ptid=447
oldev 4/3的版本, simon 6/17的版本, 和sagas 6/23的版本, 黑块块依然伫立依旧.
我是在debian5.x上的5.0.1.0版本.
用来测试的是purchase order模块.我发现系统默认的模块包都是目录形式, 我上传却是.zip的形式 ... [/quote]
我也遇到了同樣的問題呢, 我用的是V5.0.3, 希望有大大能指點一下
-
[quote]原帖由 [i]trempcn[/i] 于 2009-8-3 10:56 发表 www.shine-it.net/redirect.php?goto=findpost&pid=2559&ptid=447
oldev 4/3的版本, simon 6/17的版本, 和sagas 6/23的版本, 黑块块依然伫立依旧.
我是在debian5.x上的5.0.1.0版本.
用来测试的是purchase order模块.我发现系统默认的模块包都是目录形式, 我上传却是.zip的形式 ... [/quote]
你需要在 Administration/Modules/Update Modules 让 OpenERP 发现这个模块再安装
基本的使用请参考文档
http://doc.openerp.com/book/1/1_2_Guided_Tour/1_2_Guided_Tour_install_functionality.html#installing-a-module -
兄弟是要打算将tryton中使用relatorio模块的报表系统移植过来吗?加油,期待中。
-
专门为测试结果喷了一篇博文:
alwaysrev.spaces.live.com/blog/cns%21218708052A8413FB%21183.entryOpenERP ODT 报表测试结果今晚经过我的测试,证实了 OpenERP 的确支持直接 odt to odt 报表模板的转换,但是还是存在不少问题:
[list type=decimal][li]添加 odt 的模板也要继承用 python 代码进行注册,比较麻烦。[/li][li]openerp/server/bin/report/report_sxw.py的 .ODT 转化代码存在 bug,请在创建 odt 模板时把 odt 文档的“属性”中的 "Info 3", "Info 4"之类的“自定义属性”删掉(参考图1),否则会引发异常。[/li][li]OpenERP 会自作多情地更改样式表,导致转换前后效果不一。[/li][/list]
https://e3y41w.bay.livefilestore.com/y1mBuoY20vO2iyEsu0sLGRmFHsAC-x08J6zRSqPmGFSjedknPj_jKX3wr_KCpk_0kCAwJN6uaNL5udG1TaWGHxw0Uj0VIGmmhjLGruBJP5CZ-sSUPcy6mCBJsY4xikhx0a4KKBnqfU1yGvq6ef4DNwInw/image[5].png
[align=center]图1:OpenOffice Writer 的“属性”对话框[/align] 附带的 “partner_odt_report”是一个ODT 模板测试模块,演示如何创建 ODT 模板。可以通过 OpenERP 自带的模块导入partner_odt.report.zip 文件,模块安装完成之后在 Partner 的表单右侧即可看到 “Partner ODT”的报表按钮。
https://e3y41w.bay.livefilestore.com/y1mGPcJLfOH9TcKlbhRP6lNlA1Tuxkn01VsFRHy7PELeSI-Zbx_Y4pUCrzkASy5KUV3VoUpYWBjz2NsTdWuH6EKrqa5Ztmvv8JLguEX8Dz-hL6diwFhcE8Q-mzuhAUIaY4Y8I-4KE8plKWZQbxqgOwSqQ/image[2].png
[align=center]图2:Partner 表单[/align] 测试模块下载: cid-218708052a8413fb.skydrive.live.com/self.aspx/.Public/partner|_report|_odt.zipHave fun!
-
[size=99px]
Environment Information :
System : Windows-XP-5.1.2600-SP2
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : zh_CN.cp936
Python Version : 2.5.2
OpenERP-Client Version : 5.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "serviceweb_services.pyo", line 687, in go
File "reportreport_sxw.pyo", line 364, in create
File "reportreport_sxw.pyo", line 421, in create_source_pdf
File "reportreport_sxw.pyo", line 439, in create_single_pdf
File "reportinterface.pyo", line 199, in create_pdf
File "reportrenderrender.pyo", line 50, in render
File "reportrenderrml.pyo", line 41, in render
File "C:Program FilesOpenERP AllInOneServeraddonsbase_report_cn__init_.py", line 88, in convert2TrueType
File "reportrenderrml2pdftrml2pdf.pyo", line 780, in parseNode
File "reportrenderrml2pdftrml2pdf.pyo", line 195, in render
File "reportrenderrml2pdftrml2pdf.pyo", line 774, in render
File "reportlabplatypusdoctemplate.pyo", line 782, in build
File "reportlabplatypusdoctemplate.pyo", line 724, in _endBuild
File "reportlabpdfgencanvas.pyo", line 881, in save
File "reportlabpdfbasepdfdoc.pyo", line 219, in SaveToFile
File "reportlabpdfbasepdfdoc.pyo", line 231, in GetPDFData
File "reportlabpdfbasettfonts.pyo", line 1104, in addObjects
File "reportlabpdfbasepdfdoc.pyo", line 484, in Reference
ValueError: redefining named object: 'toUnicodeCMap:AAAAAA+WenQuanYiZenHei'
[/code][/size] -
请在这里: shine-it.net/viewthread.php?tid=614&
跟贴提交测试报告,将尽快解决这个问题。 -
打印出现下面的错误,不知道问题在哪里?
Environment Information :
System : Windows-XP-5.1.2600-SP3
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : zh_CN.cp936
Python Version : 2.5.2
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "serviceweb_services.pyo", line 687, in go
File "reportinterface.pyo", line 100, in create
File "reportinterface.pyo", line 199, in create_pdf
File "reportrenderrender.pyo", line 50, in render
File "reportrenderrml.pyo", line 41, in render
File "C:Program FilesOpenERP AllInOneServeraddonsbase_report_cn.zipbase_report_cn__init_.py", line 80, in convert2TrueType
File "reportrenderrml2pdftrml2pdf.pyo", line 780, in parseNode
File "reportrenderrml2pdftrml2pdf.pyo", line 195, in render
File "reportrenderrml2pdftrml2pdf.pyo", line 774, in render
File "reportlabplatypusdoctemplate.pyo", line 756, in build
File "reportlabplatypusdoctemplate.pyo", line 649, in handle_flowable
File "reportlabplatypusframes.pyo", line 174, in _add
File "reportlabplatypusflowables.pyo", line 102, in drawOn
File "reportlabplatypusflowables.pyo", line 86, in _drawOn
File "reportlabplatypustables.pyo", line 1282, in draw
File "reportlabplatypustables.pyo", line 1361, in _drawCell
File "reportlabpdfgencanvas.pyo", line 1306, in setFont
File "reportlabpdfbasepdfmetrics.pyo", line 659, in findFontAndRegister
File "reportlabpdfbasepdfmetrics.pyo", line 618, in getTypeFace
KeyError: 'SimHeiOblique'