3

我一直收到此错误,无法查看用户的列表和项目/任务,甚至无法使用用户的登录信息登录。

谁能帮我..

谢谢你。

OpenERP 服务器错误

Client Traceback (most recent call last):   
File "/opt/openerp/server/openerp/addons/web/http.py", line 195, in dispatch 
      response["result"] = method(self, **self.params)   
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1012, in search_read
     return self.do_search_read(req, model, fields, offset, limit, domain, sort)   
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1047, in do_search_read
     records = Model.read(ids, fields or False, req.context)   
File "/opt/openerp/server/openerp/addons/web/session.py", line 40, in proxy
     result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)   
File "/opt/openerp/server/openerp/addons/web/session.py", line 28, in proxy_method
     result = self.session.send(self.service_name, method, *args)   
File "/opt/openerp/server/openerp/addons/web/session.py", line 101, in send
     raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)


Server Traceback (most recent call last):   
File "/opt/openerp/server/openerp/addons/web/session.py", line 87, in send
     return openerp.netsvc.dispatch_rpc(service_name, method, args)   
File "/opt/openerp/server/openerp/netsvc.py", line 361, in dispatch_rpc
     result = ExportService.getService(service_name).dispatch(method, params)   
File "/opt/openerp/server/openerp/service/web_services.py", line 601, in dispatch
     res = fn(db, uid, *params)   
File "/opt/openerp/server/openerp/osv/osv.py", line 167, in execute_kw
     return self.execute(db, uid, obj, method, *args, **kw or {})   
File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
     return f(self, dbname, *args, **kwargs)   
File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
     res = self.execute_cr(cr, uid, obj, method, *args, **kw)   
File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
     return getattr(object, method)(cr, uid, *args, **kw)   
File "/opt/openerp/server/openerp/addons/base/res/res_users.py", line 796, in read
     res = super(users_view, self).read(cr, uid, ids, fields, context=context, load=load)   
File "/opt/openerp/server/openerp/addons/base/res/res_users.py", line 272, in read
     result = super(res_users, self).read(cr, uid, ids, fields=fields, context=context, load=load)   
File "/opt/openerp/server/openerp/osv/orm.py", line 3575, in read
     result = self._read_flat(cr, user, select, fields, context, load)   
File "/opt/openerp/server/openerp/osv/orm.py", line 3660, in _read_flat
     record.update(res3[record[col]]) 
KeyError: 3
4

4 回答 4

1

错误表明数据库中不存在 id 3 的记录。

当您尝试从数据库中读取数据时,它会删除您尝试读取的记录。

请重新连接并尝试打开项目/任务。

于 2013-01-18T11:23:29.800 回答
1

仅凭该信息很难找到错误,但由于更新 openerp 服务器时出现问题,我多次遇到关键错误,并且在再次全部更新后,问题消失了。

尝试从用户界面更新模块,如果不起作用,请尝试从控制台重新启动并更新所有 openerp 服务器。

于 2015-05-28T12:04:47.457 回答
0

如果有任何功能字段,请检查它。在以所需格式返回值时,会在功能字段中引发这种键错误。

于 2015-05-26T06:10:10.577 回答
0

备份数据库,删除当前数据库并创建一个新的,稍后您可以导入所有数据。

于 2015-08-30T14:15:58.020 回答