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

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

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

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

Openerp7.0的ir.attachment出错,如何排查错误?



  • 哪位大侠指点一下,我该如何排查这个错误。

    出现问题现象:文档不能以目录分类来显示,可以用所有者和日期来分类。该如何解决?

    OpenERP Server Error
    Client Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/http.py", line 204, in dispatch
        response["result"] = method(self, **self.params)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/controllers/main.py", line 1051, in search_read
        return self.do_search_read(req, model, fields, offset, limit, domain, sort)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/controllers/main.py", line 1086, in do_search_read
        records = Model.read(ids, fields or False, req.context)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 42, in proxy
        result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 30, in proxy_method
        result = self.session.send(self.service_name, method, *args)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 103, in send
        raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


    Server Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 89, in send
        return openerp.netsvc.dispatch_rpc(service_name, method, args)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/netsvc.py", line 296, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/service/web_services.py", line 626, in dispatch
        res = fn(db, uid, *params)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 190, in execute_kw
        return self.execute(db, uid, obj, method, *args, **kw or {})
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 132, in wrapper
        return f(self, dbname, *args, **kwargs)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 199, in execute
        res = self.execute_cr(cr, uid, obj, method, *args, **kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/audittrail/audittrail.py", line 532, in execute_cr
        return fct_src(cr, uid, model, method, *args, **kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 187, in execute_cr
        return getattr(object, method)(cr, uid, *args, **kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/base/ir/ir_attachment.py", line 269, in read
        return super(ir_attachment, self).read(cr, uid, ids, fields_to_read, context, load)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 3679, in read
        result = self._read_flat(cr, user, select, fields, context, load)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 3800, in _read_flat
        res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/fields.py", line 468, in get
        context=context))
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/base/res/res_partner.py", line 548, in name_get
        name =  "%s, %s" % (record.parent_id.name, name)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 504, in getattr
        raise AttributeError(e)
    AttributeError: 402



  • 哪位大侠指点一下,我该如何排查这个错误。

    出现问题现象:文档不能以目录分类来显示,可以用所有者和日期来分类。该如何解决?

    OpenERP Server Error
    Client Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/http.py", line 204, in dispatch
        response["result"] = method(self, **self.params)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/controllers/main.py", line 1051, in search_read
        return self.do_search_read(req, model, fields, offset, limit, domain, sort)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/controllers/main.py", line 1086, in do_search_read
        records = Model.read(ids, fields or False, req.context)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 42, in proxy
        result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 30, in proxy_method
        result = self.session.send(self.service_name, method, *args)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 103, in send
        raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


    Server Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 89, in send
        return openerp.netsvc.dispatch_rpc(service_name, method, args)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/netsvc.py", line 296, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/service/web_services.py", line 626, in dispatch
        res = fn(db, uid, *params)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 190, in execute_kw
        return self.execute(db, uid, obj, method, *args, **kw or {})
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 132, in wrapper
        return f(self, dbname, *args, **kwargs)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 199, in execute
        res = self.execute_cr(cr, uid, obj, method, *args, **kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/audittrail/audittrail.py", line 532, in execute_cr
        return fct_src(cr, uid, model, method, *args, **kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 187, in execute_cr
        return getattr(object, method)(cr, uid, *args, **kw)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/base/ir/ir_attachment.py", line 269, in read
        return super(ir_attachment, self).read(cr, uid, ids, fields_to_read, context, load)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 3679, in read
        result = self._read_flat(cr, user, select, fields, context, load)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 3800, in _read_flat
        res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/fields.py", line 468, in get
        context=context))
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/base/res/res_partner.py", line 548, in name_get
        name =  "%s, %s" % (record.parent_id.name, name)
      File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 504, in getattr
        raise AttributeError(e)
    AttributeError: 402


登录后回复
 

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