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

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

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

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

代办事项列表模块一安装就出错



  • 安装了项目管理的 代办事项列表模块,一打开项目中的我的任务就会出现“UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)”,在XP下和Ubuntu下均如此。
        完整错误描述为:
    “您的 OpenERP 版本没有包含支持。支持与维护服务在此处可以购买:模型”%s“的字段.

    OpenERP Server Error

    Client Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch
        response["result"] = method(controller, self, **self.params)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1231, in load
        fields_view = self.fields_view_get(req, model, view_id, 'search')
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1043, in fields_view_get
        fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
        args, kw)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
        result = self.connector.send(self.service_name, method, *args)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send
        raise fault


    Server Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send
        result = openerp.netsvc.dispatch_rpc(service_name, method, args)
      File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
      File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 572, in dispatch
        res = fn(db, uid, *params)
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw
        return self.execute(db, uid, obj, method, *args, **kw or {})
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
        return f(self, dbname, *args, **kwargs)
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
        res = self.execute_cr(cr, uid, obj, method, *args, **kw)
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
        return getattr(object, method)(cr, uid, *args, **kw)
      File "/usr/lib/pymodules/python2.6/openerp/addons/project_gtd/project_gtd.py", line 118, in fields_view_get
        res['arch'] = res['arch'].replace('<separator name="gtdsep"/>', search_extended)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)



    求解?



  • 安装了项目管理的 代办事项列表模块,一打开项目中的我的任务就会出现“UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)”,在XP下和Ubuntu下均如此。
        完整错误描述为:
    “您的 OpenERP 版本没有包含支持。支持与维护服务在此处可以购买:模型”%s“的字段.

    OpenERP Server Error

    Client Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch
        response["result"] = method(controller, self, **self.params)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1231, in load
        fields_view = self.fields_view_get(req, model, view_id, 'search')
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1043, in fields_view_get
        fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
        args, kw)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
        result = self.connector.send(self.service_name, method, *args)
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send
        raise fault


    Server Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send
        result = openerp.netsvc.dispatch_rpc(service_name, method, args)
      File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
      File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 572, in dispatch
        res = fn(db, uid, *params)
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw
        return self.execute(db, uid, obj, method, *args, **kw or {})
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
        return f(self, dbname, *args, **kwargs)
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
        res = self.execute_cr(cr, uid, obj, method, *args, **kw)
      File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
        return getattr(object, method)(cr, uid, *args, **kw)
      File "/usr/lib/pymodules/python2.6/openerp/addons/project_gtd/project_gtd.py", line 118, in fields_view_get
        res['arch'] = res['arch'].replace('<separator name="gtdsep"/>', search_extended)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)



    求解?



  • 我也想知道原因,我也碰到相同的问题


  • 管理员

    在汇报问题时应该把你所使用的版本告诉大家。我这里6.1版本中显示在4月26日的rev 6767中这个问题已经修正。
    在解码二进制字符串时,加了utf-8 encoding,将project_gtd.py文件的118行改为如下:
                [code]res['arch'] = unicode(res['arch'],'utf8').replace('<separator name="gtdsep"/>', search_extended)[/code]

    或到官网下载最小版本,
    或用bzr更新获取最新版本



登录后回复
 

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