← Back to team overview

openerp-india team mailing list archive

[Bug 1023322] 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!

** Summary changed:

- "Order by" in meetings
+ "Order by" in meetings not working due to  get_recurrent_ids(def search) method of calendar.event

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: Incomplete => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1023322

Title:
  "Order by" in meetings not working due to  get_recurrent_ids(def
  search) method of calendar.event

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Ok, maybe this is the strangest bug I've ever found in OpenERP, and
  it's driving us kind of crazy.

  In the list view of meetings, when trying to sort the columns:
  Subject, Responsible, Date... nothing happens. We can't explain why
  because as far as we know the sorting function is something related to
  the framework itself and should work in the same way for all the
  objects.

  You can try with the latest runbot http://6_1_13446.runbot.openerp.com

  We are going to investigate further, but some previous advice or
  related bugs are welcome.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1023322/+subscriptions


References