Regression: cannot open partners (5.0)

Bug #615274 reported by Dukai Gábor on 2010-08-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Incomplete
Undecided
Unassigned

Bug Description

Hi!
5.0 latest bzr.
Updating the server from 5.0.11 to latest bzr made a regression and since then I cannot open partners at all.

 Traceback (most recent call last):
   File "bin/osv/osv.py", line 58, in wrapper
     return f(self, dbname, *args, **kwargs)
   File "bin/osv/osv.py", line 119, in execute
     res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
   File "bin/osv/osv.py", line 111, in execute_cr
     return getattr(object, method)(cr, uid, *args, **kw)
   File "bin/addons/koo/koo.py", line 353, in new_fields_view_get
     result = old_fields_view_get( self, cr, user, view_id, view_type, context, toolbar )
   File "bin/osv/orm.py", line 1393, in fields_view_get
     context)
   File "bin/addons/base/ir/ir_values.py", line 225, in get
     res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
   File "bin/addons/base/ir/ir_values.py", line 225, in <lambda>
     res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
   File "bin/addons/base/ir/ir_values.py", line 211, in _result_get
     datas = self.pool.get(model).read(cr, uid, [id], fields, context)
   File "bin/addons/hr/hr_department.py", line 71, in read
     context=context, load=load)
   File "bin/osv/orm.py", line 2228, in read
     result = self._read_flat(cr, user, select, fields, context, load)
   File "bin/osv/orm.py", line 2360, in _read_flat
     res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
   File "bin/osv/fields.py", line 427, in get
     res[r[self._fields_id]].append(r['id'])
 KeyError: 118

Related branches

Dukai Gábor (gdukai) wrote :

Removed the module 'koo' but the traceback is quite the same:

 Traceback (most recent call last):
   File "bin/osv/osv.py", line 58, in wrapper
     return f(self, dbname, *args, **kwargs)
   File "bin/osv/osv.py", line 119, in execute
     res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
   File "bin/osv/osv.py", line 111, in execute_cr
     return getattr(object, method)(cr, uid, *args, **kw)
   File "bin/osv/orm.py", line 1393, in fields_view_get
     context)
   File "bin/addons/base/ir/ir_values.py", line 225, in get
     res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
   File "bin/addons/base/ir/ir_values.py", line 225, in <lambda>
     res = filter(bool, map(lambda x: _result_get(x, keys), list(result)))
   File "bin/addons/base/ir/ir_values.py", line 211, in _result_get
     datas = self.pool.get(model).read(cr, uid, [id], fields, context)
   File "bin/addons/hr/hr_department.py", line 71, in read
     context=context, load=load)
   File "bin/osv/orm.py", line 2228, in read
     result = self._read_flat(cr, user, select, fields, context, load)
   File "bin/osv/orm.py", line 2360, in _read_flat
     res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
   File "bin/osv/fields.py", line 427, in get
     res[r[self._fields_id]].append(r['id'])
 KeyError: 118

Sure ?

How can I retrieve your database ? Because I don't have this problem with the last bzr commit.

Regards,

Stéphane

Changed in openobject-server:
status: New → Incomplete
Dukai Gábor (gdukai) wrote :

I've spent 3 hours trying to get useful information about this.

It's <email address hidden>

In the loop of 'for r in obj.pool.get(self._obj)._read_flat(cr, user, ids2, [self._fields_id], context=context, load='_classic_write'):'
it tries to append an id of an act_window that's not in res.

I tries removing the act_window in question but then it just fails with another act_window_id.

Don't know how to reproduce it with another db but I can't give you my whole db, it's not test data.

Changed in openobject-server:
milestone: none → 5.0.13
Dukai Gábor (gdukai) wrote :

This was partly related to a wrong record in the database. Solved.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers