Related fields don't honour the search ordering.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP's Framework R&D |
Bug Description
Hi,
I caught this bug when I was using XML-RPC to sort my custom model's record on the basis of name. The 'name' field in my custom model is a related field to 'Product model'. When tried searching on my model with name as the order it gave me the same record ids as it gave without using the order parameter.
My field defintion:
'name': fields.
My Test case:
1. proxy.execute(
result = [1, 2, 3, 4, 5]
2. proxy.execute(
result = [1, 2, 3, 4, 5]
3. proxy.execute(
result = [51, 45, 21, 4, 5] , works good as name is a character field here.
I am using V6.1.
Hi,
It seems this bug is effective only when the related field is not stored in DB. Otherwise it works as expected.
But I will assume it as a bug.
Thanks and Regards!