我安装的openerp版本是5.0.6,操作系统是centos 5.4,在REPORTS里点生成报表,就出现错误'utf8' codec can't decode bytes in position 14-16: invalid data,
日志内容:
[16/Feb/2011:11:13:32] HTTP Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/local/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/cpdispatch.py", line 25, in call
return self.callable(*self.args, **self.kwargs)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/base.py", line 122, in wrapper
return fn(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/tools/expose.py", line 204, in func_wrapper
res = func(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/form.py", line 872, in action
action = rpc.session.execute('object', 'execute', action_type, 'read', act_id, False, rpc.session.context)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 350, in execute
return self.gateway.execute(obj, method, *args)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 154, in execute
return self.__execute(obj, method, args)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 143, in __execute
raise common.error(('Application Error!'), str(e))
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/common.py", line 72, in error
raise TinyError(message=msg, title=title or _("Error"))
TinyError: 'utf8' codec can't decode bytes in position 14-16: invalid data
canonaa
-
求助'utf8' codec can't decode bytes in position 14-16: invalid data -
求助cannot marshal None unless allow_none is enabled多刷新也不行
-
求助cannot marshal None unless allow_none is enabled我安装的openerp版本是5.0.6,用浏览器打开进入后,点main menu的时候,出现 cannot marshal None unless allow_none is enabled错误,
openerp-web错误日志:
[30/Jan/2011:15:58:58] HTTP Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/local/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cpdispatch.py", line 25, in call
return self.callable(*self.args, **self.kwargs)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/base.py", line 122, in wrapper
return fn(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/tools/expose.py", line 204, in func_wrapper
res = func(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/root.py", line 90, in menu
return self.user_action('menu_id')
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/root.py", line 78, in user_action
return controllers.actions.execute_by_id(act_id)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/actions.py", line 325, in execute_by_id
return execute(res, **data)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/actions.py", line 258, in execute
limit=data.get('limit'))
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/actions.py", line 91, in execute_window
return Tree().create(params)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/base.py", line 122, in wrapper
return fn(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/tools/expose.py", line 204, in func_wrapper
res = func(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/tree.py", line 74, in create
tree = tree_view.ViewTree(view, model, res_id, domain=domain, context=context, action="/tree/action")
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/base/meta.py", line 40, in wrapper
res = func(self, *args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/tree_view.py", line 116, in init
self.sidebar = Sidebar(self.model, toolbar, context=self.context)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/base/meta.py", line 40, in wrapper
res = func(self, *args, **kw)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/sidebar.py", line 111, in init
ids = proxy.search([('res_model', '=', model), ('res_id', '=', id)], 0, 0, 0, self.context)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 389, in <lambda>
return lambda *args: self._session.execute("object", "execute", self.resource, name, *args)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 350, in execute
return self.gateway.execute(obj, method, *args)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 154, in execute
return self.__execute(obj, method, args)
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/rpc.py", line 143, in __execute
raise common.error(('Application Error!'), str(e))
File "/usr/local/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/common.py", line 72, in error
raise TinyError(message=msg, title=title or _("Error"))
TinyError: cannot marshal None unless allow_none is enabled