Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

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

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

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

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

    安装oecn_base_font后,预览页眉页脚照样是黑方块

    Odoo 新手求助
    2
    4
    2432
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mbqt last edited by

      第一次源码安装OpenErp,按论坛说的安装oecn_base_font后。Font-Map参数如下:

      [["Helvetica", "SimSun", "/usr/share/fonts/dejavu/simsun.ttc", "all"], ["DejaVuSans", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"], ["Times", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"], ["Times-Roman", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"], ["Courier", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"]]
      



      查看页眉脚本已经变成新宋体
      <header> <pageTemplate> <frame id="first" x1="1.3cm" y1="3.0cm" height="21.7cm" width="19.0cm"/> <stylesheet> <!-- Set here the default font to use for all <para> tags --> <paraStyle name='Normal' fontName="SimSun"/> <paraStyle name="main_footer" fontSize="10.0" alignment="CENTER"/> <paraStyle name="main_header" fontSize="10.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> </stylesheet> <pageGraphics> <!-- Set here the default font to use for all <drawString> tags --> <setFont name="SimSun" size="10"/> <!-- You Logo - Change X,Y,Width and Height --> <image x="1.3cm" y="27.7cm" height="40.0" >[[ company.logo or removeParentNode('image') ]]</image> <fill color="black"/> <stroke color="black"/>
      但预览结果依然是黑方块。求助。。。

      1 Reply Last reply Reply Quote 0
      • Joshua
        Joshua 管理员 last edited by

        1.尝试重启服务器。
        2.尝试Font-Map删掉然后重新配置

        【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

        1 Reply Last reply Reply Quote 0
        • M
          mbqt last edited by

          已经解决
          安装了base_report_cn后解决问题

          1 Reply Last reply Reply Quote 0
          • First post
            Last post