跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 新手求助
  4. OpenERPv7.0 中文报表字体模块(oecn_base_fonts)安装出错

OpenERPv7.0 中文报表字体模块(oecn_base_fonts)安装出错

已定时 已固定 已锁定 已移动 Odoo 新手求助
11 帖子 6 发布者 11.9k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • X 离线
    X 离线
    xvweirong
    写于 最后由 编辑
    #1

    今天下载的All In One v7.0, Win7环境
    安装模块(oecn_base_fonts),报错如下:
    ValidateError
    验证字段 arch 时发生错误: Invalid XML for View Architecture!

    没有自动出现配置界面。
    常规设置中也没有出现相关配置项。

    1 条回复 最后回复
    0
    • J 离线
      J 离线
      Joshua 管理员
      写于 最后由 编辑
      #2

      请注意你下载的是不是 v7.0版本。 http://cn.openerp.cn/openerp_v7_oecn_base_fonts/ 模块下载地址:
      [检测到链接无效,已移除]
      这里说的是7.0,所以应该下载trunk版本。

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

      1 条回复 最后回复
      0
      • X 离线
        X 离线
        xvweirong
        写于 最后由 编辑
        #3

        [quote author=Joshua link=topic=8054.msg17665#msg17665 date=1374217432]
        请注意你下载的是不是 v7.0版本。 http://cn.openerp.cn/openerp_v7_oecn_base_fonts/ 模块下载地址:
        [检测到链接无效,已移除]
        这里说的是7.0,所以应该下载trunk版本。
        [/quote]
        是的,非常确认下载的是trunk版本,截频中有版本显示:7.0.2.1.1。安装报错后,关闭警告框,刷新,显示模块已经安装好了,出现【取消安装】的按钮,但没地方可以设置,而且奇怪的是紧接着安装其他未安装的模块,都会报同样的错误,需要重新启动服务来消除影响。
        有什么办法可以调试,以发现问题所在?

        1 条回复 最后回复
        0
        • J 离线
          J 离线
          Joshua 管理员
          写于 最后由 编辑
          #4

          看看server-log?

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

          1 条回复 最后回复
          0
          • X 离线
            X 离线
            xvweirong
            写于 最后由 编辑
            #5

            [quote author=Joshua link=topic=8054.msg17672#msg17672 date=1374221762]
            看看server-log?
            [/quote]

            2013-07-25 10:31:56,966 948 INFO test openerp.modules.module: module oec
            n_base_fonts: creating or updating database tables
            2013-07-25 10:31:57,385 948 INFO test openerp.modules.loading: module oe
            cn_base_fonts: loading oecn_font_installer.xml
            2013-07-25 10:32:16,944 948 ERROR test openerp.addons.base.ir.ir_ui_view
            : Can't render view  for model: oecn.font.installer
            Traceback (most recent call last):
              File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py", line 126, in _check
            _render_view
                fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=vi
            ew.type, context=context)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 2260, in fields_view_get
                xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=
            ctx)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1913, in __view_look_dom_arch
                fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=cont
            ext)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1859, in __view_look_dom
                fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c
            ontext))
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1859, in __view_look_dom
                fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c
            ontext))
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1776, in __view_look_dom
                xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1912, in __view_look_dom_arch
                fields = self.fields_get(cr, user, None, context)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 3514, in fields_get
                res[f] = fields.field_to_dict(self, cr, user, field, context=context)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\fields.py", line 1525, in field_to_dict
                res['selection'] = field.selection(model, cr, user, context)
              File "c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py", li
            ne 54, in get_system_fonts
                return self._system_fonts_get(cr, uid)
              File "c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py", li
            ne 69, in _system_fonts_get
                ff.search()
              File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\lib\fontfinder.py", lin
            e 259, in search
                font = TTFontFile(fileName,validate=self.validate)
              File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py", li
            ne 413, in init
                self.extractInfo(charInfo)
              File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py", li
            ne 473, in extractInfo
                A(chr(char))
            ValueError: chr() arg not in range(256)
            2013-07-25 10:32:17,247 948 ERROR test openerp.tools.convert: Parse erro
            r in file:///c:/temp/OpenERP/OpenERP/openerp/addons/oecn_base_fonts/oecn_font_installer.xm
            l:5:
            <record id="view_font_configuration_installer" model="ir.ui.view">
                        <field name="name">oecn.font.installer.form</field>
                        <field name="model">oecn.font.installer</field>
                        <field name="inherit_id" ref="base.res_config_installer"/>
                        <field name="arch" type="xml">
                            <data><form position="attributes" version="7.0">
                                <attribute name="string">Customer Font Mapping Configuration</attribut
            e>
                            </form>
                            <footer position="replace">
                                <footer>
                                  <button name="action_next" type="object" string="Continue" class="oe
            _highlight"/>
                                </footer>
                            </footer>
                            <separator string="title" position="replace">
                                <p class="oe_grey">
                                    Fonts used in the default report may not support the characters in
            your lanuage. Use the setting here to replace the Original font with the font you choose.

                                </p>
                                <group>
                                    <field name="wrap" class="oe_inline"/>
                                    <field name="map_ids" nolabel="1" colspan="4">
                                    <tree string="Font replace" editable="top">
                                        <field name="pdf_font"/>
                                        <field name="new_font" on_change="onchange_new_font(new_font)"
            />
                                        <field name="name"/>
                                    </tree>
                                </field>
                                </group>
                            </separator>
                        </data></field>
                    </record>
            Traceback (most recent call last):
              File "c:\temp\OpenERP\OpenERP\openerp\tools\convert.py", line 847, in parse
                self._tags[rec.tag](self.cr, rec, n)
              File "c:\temp\OpenERP\OpenERP\openerp\tools\convert.py", line 814, in _tag_record
                id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res,
            rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mod
            e=self.mode, context=rec_context )
              File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_model.py", line 963, in _update
                res_id = model_obj.create(cr, uid, values, context=context)
              File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py", line 103, in create

                return super(view, self).create(cr, uid, values, context)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 4470, in create
                self._validate(cr, user, [id_new], context)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1544, in _validate
                raise except_orm('ValidateError', '\n'.join(error_msgs))
            except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid
            XML for View Architecture!')
            2013-07-25 10:32:17,558 948 ERROR test openerp.netsvc: ValidateError
            Error occurred while validating the field(s) arch: Invalid XML for View Architecture!
            Traceback (most recent call last):
              File "c:\temp\OpenERP\OpenERP\openerp\netsvc.py", line 292, in dispatch_rpc
                result = ExportService.getService(service_name).dispatch(method, params)
              File "c:\temp\OpenERP\OpenERP\openerp\service\web_services.py", line 626, in dispatch
                res = fn(db, uid, *params)
              File "c:\temp\OpenERP\OpenERP\openerp\osv\osv.py", line 188, in execute_kw
                return self.execute(db, uid, obj, method, *args, **kw or {})
              File "c:\temp\OpenERP\OpenERP\openerp\osv\osv.py", line 144, in wrapper
                raise except_osv(inst.name, inst.value)
            except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid
            XML for View Architecture!')
            2013-07-25 10:32:17,647 948 INFO test werkzeug: 127.0.0.1 - - [25/Jul/20
            13 10:32:17] "POST /web/dataset/call_button HTTP/1.1" 200 -
            2013-07-25 10:32:18,003 948 INFO ? werkzeug: 127.0.0.1 - - [25/Jul/2013
            10:32:18] "GET /web/static/src/img/warning.png HTTP/1.1" 200 -

            1 条回复 最后回复
            0
            • 1 离线
              1 离线
              1348647581qq.com
              写于 最后由 编辑
              #6

              不止楼主解决问题了吗?我也碰到一样的问题。 😕

              1 条回复 最后回复
              0
              • B 离线
                B 离线
                baalking
                写于 最后由 编辑
                #7

                请问楼主问题解决了吗,同样碰到这状况,求解答。

                1 条回复 最后回复
                0
                • wjfonhandW 离线
                  wjfonhandW 离线
                  wjfonhand
                  写于 最后由 编辑
                  #8

                  可能是有些字体文件的文件名含中文

                  GoodERP -- Odoo China fork

                  1 条回复 最后回复
                  0
                  • B 离线
                    B 离线
                    baalking
                    写于 最后由 编辑
                    #9

                    [quote author=Jeff link=topic=8054.msg28383#msg28383 date=1404389100]
                    可能是有些字体文件的文件名含中文
                    [/quote]

                    估计是,昨天后来我确认字体包时把字体包的中文名改成拼音字母,今天再试安装居然就搞定了

                    1 条回复 最后回复
                    0
                    • E 离线
                      E 离线
                      eak617
                      写于 最后由 编辑
                      #10

                      表示遇到了同样的问题。

                      1 条回复 最后回复
                      0

                      • 登录

                      • 没有帐号? 注册

                      • 登录或注册以进行搜索。
                      • 第一个帖子
                        最后一个帖子
                      0
                      • 版块
                      • 标签
                      • 热门
                      • 用户
                      • 群组