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

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

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

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

求助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



  • 多刷新几次试试呢?

    是不是网页没有下载完全, 点击过快造成的呢?



  • 多刷新也不行



  • This is a bug in v6.0 when you try to use https in openerp-web. Should be solved by next release. In the meantime, the best is to switch to netrpc for openerp-web or update your code from bzr.

    Eric