Error when group by or order by with fields inherit from product
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
This bug happened on v6.
In hotel module, I have a Room object which is inherited from "product.product". I got below error message when I tried to "order by" or group by field "categ_id".
I searched around and found bug https:/
Error message:
Traceback (most recent call last):
File "/usr/local/
result = ExportService.
File "/usr/local/
res = fn(db, uid, *params)
File "/usr/local/
return f(self, dbname, *args, **kwargs)
File "/usr/local/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/usr/local/
order_by = self._generate_
File "/usr/local/
order_column = parent_
KeyError: 'categ_id'
Related branches
- Vo Minh Thu: Pending requested
-
Diff: 145 lines (+27/-18)2 files modifiedopenerp/osv/fields.py (+7/-3)
openerp/osv/orm.py (+20/-15)
- Naresh(OpenERP) (community): Approve
- Olivier Dony (Odoo): Pending requested
-
Diff: 113 lines (+47/-7)2 files modifiedbin/osv/fields.py (+22/-0)
bin/osv/orm.py (+25/-7)
Changed in openobject-server: | |
status: | Confirmed → In Progress |
tags: | added: maintenance |
Hello tnbui,
I have checked the same issue at my end but it seems working perfectly fine.
Would you please update the code and recheck ?
Please let us know with the more information if you still face the same error.
Thanks.