← Back to team overview

openerp-india team mailing list archive

[Bug 1090637] Re: Projects and Tasks started getting "KeyError: 6"

 

If I removed any data, I did so via the Web interface.

Are y'all [Twinkle Christian(OpenERP) (tch-openerp)  and Serpent
Consulting Services (serpent-consulting-services) ] saying that it's
appropriate for OpenERP version 7 to create this situation via the Web
interface?

I have a backup of the errant data. Would you like me to look at
anything in that data? What information might help you if it turns out
this is not just some crazy fool user error?

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1090637

Title:
  Projects and Tasks started getting "KeyError: 6"

Status in OpenERP Server:
  Invalid

Bug description:
  I'd been enjoying researching Project billing for a few days when,
  without noticeable cause, I started receiving an error when I menu to
  Project, Project, Projects or Project, Project, Tasks.

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1012, in search_read
      return self.do_search_read(req, model, fields, offset, limit, domain, sort)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1047, in do_search_read
      records = Model.read(ids, fields or False, req.context)
    File "/usr/lib/pymodules/python2.7/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 "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 28, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/usr/lib/pymodules/python2.7/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 "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 87, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 361, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 601, in dispatch
      res = fn(db, uid, *params)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
      return fct_src(cr, uid, model, method, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3575, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3650, in _read_flat
      res2 = self.pool.get(table).read(cr, user, [x[col] for x in res], cols, context, load)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3575, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3694, in _read_flat
      res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
    File "/usr/lib/pymodules/python2.7/openerp/osv/fields.py", line 452, in get
      context=context))
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2377, in name_get
      load='_classic_write', context=context)]
    File "/usr/lib/pymodules/python2.7/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 "/usr/lib/pymodules/python2.7/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 "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3575, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3660, in _read_flat
      record.update(res3[record[col]])
  KeyError: 6

  Both seem to encounter the same error.

  Project, Project, Project Phases, My Tasks, and Issues do not
  encounter this error.

  Project, Configuration, Resources, Resources encounters the same
  error. Resource Leaves and Working Time do not encounter an error.

  root@QnD:~/Downloads# grep version /var/log/openerp-server.log 
  2012-12-09 20:03:10,771 22032 INFO ? openerp: OpenERP version 7.0alpha-20121206-000102

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1090637/+subscriptions


References