2 jpapple JPAPPLE 于 2016.01.21 14:53 提问

来挑战一下自己吧 有兴趣的可以进来

图片说明



faultCode
522


faultString
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 82, in xmlrpc_return
result = openerp.netsvc.dispatch_rpc(service, method, params)
File "/usr/lib/python2.7/dist-packages/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/python2.7/dist-packages/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 3679, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/python2.7/dist-packages/openerp/osv/orm.py", line 3803, in _read_flat
record[f] = res2[record['id']]
KeyError: 522




3个回答

caozhy
caozhy   Ds   Rxr 2016.01.21 16:16

faultString,字符串为空吧。调试下

u011339641
u011339641   2016.01.21 17:09

KeyError肯定是哪个字典没有相应的key啊,或者某个变量值的错误,仔细找一下就能找出来

rui888
rui888   Ds   Rxr 2016.01.21 15:11

不是写了在多少行,你的python 文件出错。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!