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

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

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

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

Odoo 9 社区版 会计模块中文界面问题



  • 通过源码和deb包两种方式安装了odoo9,发现在中文界面下,安装会计模块后提示如下错误:
    [code]Odoo Server Error
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 599, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 636, in dispatch
        result = self._call_function(**self.params)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 315, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
        return f(dbname, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 308, in checked_call
        result = self.endpoint(*a, **kw)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 887, in call
        return self.method(*args, **kw)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 465, in response_wrap
        response = f(*args, **kw)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 975, in call_kw
        return self._call_kw(model, method, args, kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 967, in _call_kw
        return checked_call(request.db, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
        return f(dbname, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 966, in checked_call
        return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
        return old_api(self, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1531, in fields_view_get
        root_view = View.read_combined(cr, uid, view_id, fields=['id', 'name', 'field_parent', 'type', 'model', 'arch'], context=context)
      File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
        return old_api(self, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 635, in read_combined
        view_arch = etree.fromstring(view['arch'].encode('utf-8'))
      File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
      File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
      File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
      File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
      File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
      File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
      File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
    XMLSyntaxError: EntityRef: expecting ';', line 110, column 56[/code]

    将管理员默认语言改成英文后,会计模块就没有问题。有没有和我碰到一样问题的兄弟呀?
    下面的截图是我只安装会计模块情况下出现的



  • 通过源码和deb包两种方式安装了odoo9,发现在中文界面下,安装会计模块后提示如下错误:
    [code]Odoo Server Error
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 599, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 636, in dispatch
        result = self._call_function(**self.params)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 315, in _call_function
        return checked_call(self.db, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
        return f(dbname, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 308, in checked_call
        result = self.endpoint(*a, **kw)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 887, in call
        return self.method(*args, **kw)
      File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 465, in response_wrap
        response = f(*args, **kw)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 975, in call_kw
        return self._call_kw(model, method, args, kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 967, in _call_kw
        return checked_call(request.db, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
        return f(dbname, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 966, in checked_call
        return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
        return old_api(self, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1531, in fields_view_get
        root_view = View.read_combined(cr, uid, view_id, fields=['id', 'name', 'field_parent', 'type', 'model', 'arch'], context=context)
      File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
        return old_api(self, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_view.py", line 635, in read_combined
        view_arch = etree.fromstring(view['arch'].encode('utf-8'))
      File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
      File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
      File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
      File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
      File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
      File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
      File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
    XMLSyntaxError: EntityRef: expecting ';', line 110, column 56[/code]

    将管理员默认语言改成英文后,会计模块就没有问题。有没有和我碰到一样问题的兄弟呀?
    下面的截图是我只安装会计模块情况下出现的



  • 现在9.0 各种小bug应该还是比较多的,
    等官方慢慢修复吧。



  • 没玩过9,看代码应该很容易解决的,提个patch给官方吧



  • 多谢两位老大回复,我看odoo froum里面也有一个中国用户问同样的问题
    https://www.odoo.com/forum/help-1/question/v9-enterprise-edition-error-message-92811



  • Fixed!
    找到翻译文件zh_CN.po

    把下面翻译中的空格去掉!
    [code]
    #. module: account
    #: model:ir.ui.view,arch_db:account.account_journal_dashboard_kanban_view
    msgid "Invoices & Refunds"
    msgstr [b]"发票&a mp;退款"[/b]
    [/code]

    呵呵呵,国内翻译好强大~



  • [quote author=KevinKong link=topic=17357.msg31251#msg31251 date=1446020889]
    Fixed!
    找到翻译文件zh_CN.po

    把下面翻译中的空格去掉!
    [code]
    #. module: account
    #: model:ir.ui.view,arch_db:account.account_journal_dashboard_kanban_view
    msgid "Invoices & Refunds"
    msgstr [b]"发票&a mp;退款"[/b]
    [/code]

    呵呵呵,国内翻译好强大~
    [/quote]

    多谢,已经看到



  • 那么多空格啊。。。这算代码中的bug了吧,



  • 官方修复zh_CN.po文件已经更新了。

    针对这个问题的体验如下:
    1、修改或从库中下载更新zh_CN.po文件,重新启动odoo服务,并不能解决问题,卸载会计模块,重新安装也不能解决, 重新创建数据库重新安装一个odoo,还是不行;
    2、由于我使用docker安装的odoo9,发现docker终端对中文支持有问题,发现docker没有中文包,安装中文包,配置好中文环境,重启odoo服务,不能解决问题;
    3、再次删除数据库,重新初始化数据库,安装会计模块,发现ok了。

    总结:
    1、数据库支持中文并且使用了utf-8的字符集,但,操作系统环境必须支持中文,如中文乱码必须先解决;
    2、如果中文环境有问题,初始化数据库时,odoo的中文环境会有问题。


登录后回复
 

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