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

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

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

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

PDF 报表中文支持模块:base_report_cn



  • 专门为测试结果喷了一篇博文:
    [url=alwaysrev.spaces.live.com/blog/cns!218708052A8413FB!183.entry]http://alwaysrev.spaces.live.com/blog/cns!218708052A8413FB!183.entry[/url]

    OpenERP 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]
    [url=https://e3y41w.bay.livefilestore.com/y1mBuoY20vO2iyEsu0sLGRmFHsAC-x08J6zRSqPmGFSjedknPj_jKX3wr_KCpk_0kCAwJN6uaNL5udG1TaWGHxw0Uj0VIGmmhjLGruBJP5CZ-sSUPcy6mCBJsY4xikhx0a4KKBnqfU1yGvq6ef4DNwInw/image%5B5%5D.png][img=244,190]https://e3y41w.bay.livefilestore.com/y1mAFOn75actKb7l0ojkP4m2G6Mx4NFYmjXZ4yHz5RGfAtA3Hgu50hbMPNc-gfyLiB5vhFn8RLPYlnomulwwHjnz05SEMeZCw6FxtiwF9YcnoyeYQk1fn3DqDNcq4xOtLS0dUk9FOoF58tlDJuIBt596Q/image_thumb[1].png[/img][/url]
    [align=center]图1:OpenOffice Writer 的“属性”对话框[/align] 附带的 “partner_odt_report”是一个ODT 模板测试模块,演示如何创建 ODT 模板。可以通过 OpenERP 自带的模块导入partner_odt.report.zip 文件,模块安装完成之后在 Partner 的表单右侧即可看到 “Partner ODT”的报表按钮。
    [url=https://e3y41w.bay.livefilestore.com/y1mGPcJLfOH9TcKlbhRP6lNlA1Tuxkn01VsFRHy7PELeSI-Zbx_Y4pUCrzkASy5KUV3VoUpYWBjz2NsTdWuH6EKrqa5Ztmvv8JLguEX8Dz-hL6diwFhcE8Q-mzuhAUIaY4Y8I-4KE8plKWZQbxqgOwSqQ/image%5B2%5D.png][img=244,207]https://e3y41w.bay.livefilestore.com/y1mAN9x0bSb4RqWZlp6aD3WgEKoaXccXhrC1L8m19M1LGX2ee4qOAprl4S58ZTOx6hErJu7_0Os_Rs3frd5vlesl_rLk6d9iiYGaee_duFR70tBXhRy9ptMKt9NtBZnamJmcuG1inV1sAxy9WueT9mSQQ/image_thumb.png[/img][/url]
    [align=center]图2:Partner 表单[/align] 测试模块下载:[url=cid-218708052a8413fb.skydrive.live.com/self.aspx/.Public/partner|_report|_odt.zip]partner_odt_report.zip[/url]

    Have fun!



  • 请注意,在安装完成之后需要设置报表的类型为 odt 而不是默认的 pdf



  • Relatorio 报表模块实现了:
    [url]alwaysrev.spaces.live.com/blog/cns!218708052A8413FB!201.entry?&_c02_vws=1[/url]



  • [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]



  • 我也遇到楼上同样的问题,有解决方法吗?



    1. OS: Window XP (Service Pack 3) -> 简体中文
    2. 安装了 openerp-allinone-setup-5.0.6.exe
    3. 安装了 base_report_cn.zip
      [url]openerp-community-addons.googlecode.com/files/base_report_cn.zip[/url]
    4. 在采购管理, 打印新 PO 的时候, 仍然不能打印中文

    请问那一位大大可以试一下?


  • 管理员

    请在这里:[url=shine-it.net/viewthread.php?tid=614&]http://shine-it.net/viewthread.php?tid=614&;extra=page%3D1[/url]
    跟贴提交测试报告,将尽快解决这个问题。



  • 跟着 [url]shine-it.net/viewthread.php?tid=614&[/url];extra=page%3D1 做了一次, 出了 Error

    ValueError: Can't map determine family/bold/italic for simhei-obligue

    怎样可以把 Error message 贴出来? (JPEG file)



  • Error Message



  • 打印出现下面的错误,不知道问题在哪里?
    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'


登录后回复
 

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