[6.0.3] Show events of the current interval date
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello.
In calendar view:
The function get_recurrent_ids in base_calendar.py returns the list without considering the current interval of dates (month,week,day). The list depends on the order of reading the ids and the limit (100 by default) so it's a random list.
Add an 'order by' in the initial select make the deal for get the lasts events. But the older are affected, so many are not visible.
I find a real solution a little further in the code, with this piece of code:
for data in cr.dictfetchall():
if count > limit:
#To check: If the start date is replace by event date .. the event date will be changed by that of calendar code
Why replace start_date by event_date? What does "To check" mean?
If i comment "start_date = event_date", the list become the ids between the start_date and until_date, and everything work beautiful. I have all my events (until the limit) each month (and week,day).
Can you enlightened me?
Thanks
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
Hello Quentin Peyramale,
I have checked your issue with latest trunk and base calender already improve in trunk version, it is working fine at
my end would you please check with updated code, if you still face same problem then please informed us so we
can reproduce same at our end.
Thanks and waiting for your reply.