c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #32673
[Bug 851710] Re: [Trunk] group_by not working on _inherits objects
Hello Thibaut,
I have tried this with product.product and product.template object but did not face any problem.
So Would you please provide me the related example where I can check and reproduce the problem.
Thanks.
** Changed in: openobject-server
Status: New => Incomplete
--
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:
Incomplete
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
References