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下均如此。<br />    完整错误描述为:<br />“您的 OpenERP 版本没有包含支持。支持与维护服务在此处可以购买:模型”%s“的字段.<br /><br />OpenERP Server Error<br /><br />Client Traceback (most recent call last):<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch<br />    response["result"] = method(controller, self, **self.params)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1231, in load<br />    fields_view = self.fields_view_get(req, model, view_id, 'search')<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1043, in fields_view_get<br />    fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy<br />    args, kw)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy<br />    result = self.connector.send(self.service_name, method, *args)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send<br />    raise fault<br /><br /><br />Server Traceback (most recent call last):<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send<br />    result = openerp.netsvc.dispatch_rpc(service_name, method, args)<br />  File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 572, in dispatch<br />    res = fn(db, uid, *params)<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/project_gtd/project_gtd.py", line 118, in fields_view_get<br />    res['arch'] = res['arch'].replace('<separator name="gtdsep"/>', search_extended)<br />UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)<br /><br />”<br /><br />求解?



  • 安装了项目管理的 代办事项列表模块,一打开项目中的我的任务就会出现“UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)”,在XP下和Ubuntu下均如此。<br />    完整错误描述为:<br />“您的 OpenERP 版本没有包含支持。支持与维护服务在此处可以购买:模型”%s“的字段.<br /><br />OpenERP Server Error<br /><br />Client Traceback (most recent call last):<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch<br />    response["result"] = method(controller, self, **self.params)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1231, in load<br />    fields_view = self.fields_view_get(req, model, view_id, 'search')<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1043, in fields_view_get<br />    fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy<br />    args, kw)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy<br />    result = self.connector.send(self.service_name, method, *args)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send<br />    raise fault<br /><br /><br />Server Traceback (most recent call last):<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send<br />    result = openerp.netsvc.dispatch_rpc(service_name, method, args)<br />  File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 572, in dispatch<br />    res = fn(db, uid, *params)<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "/usr/lib/pymodules/python2.6/openerp/addons/project_gtd/project_gtd.py", line 118, in fields_view_get<br />    res['arch'] = res['arch'].replace('<separator name="gtdsep"/>', search_extended)<br />UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 16: ordinal not in range(128)<br /><br />”<br /><br />求解?



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


  • 管理员

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


登录后回复
 

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