← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 851710] [NEW] [Trunk] group_by not working on _inherits objects

 

Public bug reported:

Hi,

Using the latest trunk, I've got an object which _inheritS from an other
one. Addind group_by filters on my object don't work, and I got this
stacktrace :

Traceback (most recent call last):
  File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 175, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/orm.py", line 2753, in read_group
    d['__domain'] = [(groupby, '=', alldata[d['id']][groupby] or False)] + domain
KeyError: 398

I run the code in PDB, and alldata[] does not contain the key '398' in
my case. There were 1 and 399.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/851710

Title:
  [Trunk] group_by not working on _inherits objects

Status in OpenERP Server:
  New

Bug description:
  Hi,

  Using the latest trunk, I've got an object which _inheritS from an
  other one. Addind group_by filters on my object don't work, and I got
  this stacktrace :

  Traceback (most recent call last):
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 175, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/thibaut/OpenERP 6/Logica/server/openerp/osv/orm.py", line 2753, in read_group
      d['__domain'] = [(groupby, '=', alldata[d['id']][groupby] or False)] + domain
  KeyError: 398

  I run the code in PDB, and alldata[] does not contain the key '398' in
  my case. There were 1 and 399.

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


Follow ups

References