openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #01482
[Bug 851710] Re: [Trunk] group_by not working on _inherits objects
Hello Thibaut,
Would you please try with the latest updated code.
If you still face the problem then you can reopen this with more
information.
Thanks.
** Changed in: openobject-server
Status: Expired => Invalid
--
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/851710
Title:
[Trunk] group_by not working on _inherits objects
Status in OpenERP Server:
Invalid
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