Comment 3 for bug 1023322

Revision history for this message
Amit Parik (amit-parik) wrote : Re: "Order by" in meetings

Hello Carlos,

Yes, you are right. Meeting view not sorted by order (this is only one view which is not sorted) but the problem doesn't come from the framework side it works well. Actually problem comes form the addons side.

Let me explain in detail.

crm.meeting is inherit the calendar.event object and when we are trying to sort the record it will call the search method of calendar.event which is fine. But when 'virtual_id' in context it will call the get_recurrent_ids function (which is generated the problem). Just check the base_calender/base_calender.py 's line#1328-29, get_recurrent_ids function gives the ids based on start date and end date of calendar views. So it will return the ids on sorted manner because we have used a set method on it which will removed the duplicated ids also sorted the ids. Additionally we have called server's super method before get_recurrent_ids which gives the correct order by. But after the get_recurrent_ids call it will give every time sorted list of ids.

That's every time you got a same result and order by are working of def search method. So it should be fix from addons side that's why I am assigning this to respective addons team.

Hope this will clear.

Thank you!