I'm getting the same error working with version 6.0.3.
openerp-server: release 3533
I have 3 levels of inheritance as well hr_employee -> hr_employee_employee -> hr_employee_secure and in the tree view I can't order the columns and I get the error
ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/yaiza/Development/openerp-6.0/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/yaiza/Development/openerp-6.0/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/yaiza/Development/openerp-6.0/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/yaiza/Development/openerp-6.0/server/bin/osv/orm.py", line 1745, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/yaiza/Development/openerp-6.0/server/bin/osv/orm.py", line 4018, in _search
order_by = self._generate_order_by(order, query)
File "/home/yaiza/Development/openerp-6.0/server/bin/osv/orm.py", line 3984, in _generate_order_by
order_column = parent_obj._columns[order_field]
KeyError: 'department_id'
Is this bug going to be merged in this stable version?
I have checked the same module with version 6.1 openerp-server release 3778 and it works perfectly there with the fix that you did, thanks for that!
Hi,
I'm getting the same error working with version 6.0.3.
openerp-server: release 3533
I have 3 levels of inheritance as well hr_employee -> hr_employee_ employee -> hr_employee_secure and in the tree view I can't order the columns and I get the error
ERROR:web- services: Uncaught exception yaiza/Developme nt/openerp- 6.0/server/ bin/osv/ osv.py" , line 122, in wrapper yaiza/Developme nt/openerp- 6.0/server/ bin/osv/ osv.py" , line 176, in execute yaiza/Developme nt/openerp- 6.0/server/ bin/osv/ osv.py" , line 167, in execute_cr yaiza/Developme nt/openerp- 6.0/server/ bin/osv/ orm.py" , line 1745, in search yaiza/Developme nt/openerp- 6.0/server/ bin/osv/ orm.py" , line 4018, in _search order_by( order, query) yaiza/Developme nt/openerp- 6.0/server/ bin/osv/ orm.py" , line 3984, in _generate_order_by obj._columns[ order_field]
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
order_by = self._generate_
File "/home/
order_column = parent_
KeyError: 'department_id'
Is this bug going to be merged in this stable version?
I have checked the same module with version 6.1 openerp-server release 3778 and it works perfectly there with the fix that you did, thanks for that!
Regards,
Yaiza