virtual events are not displayed in time window not containing their root element

Bug #1194745 reported by Valentin Lab
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 1

Bug Description

Repeated on last trunk runbot:

 http://trunk-14493.runbot.openerp.com

This bug is probably present since 2010, and cripples agenda recurrent event.

To repeat:
1 - Go to Messaging / Calendar ...
2 - Click somewhere in the calendar to get the create event popup.
2 - choose a name for the event, then go in the Tab "Options", click on "recurrent"
3 - choose "repeat every:" 1 week, "Until" Number of repeatition: 52, check "monday"
4 - Save

5 - Now try to load/reload the calendar view in the months after your current date and that do not contain the starting date.

I expected to see the next events since I have asked for a recurency every week on monday.
What I see is that my recurrent event are not displayed.

Diagnosis
-------------

All events (virtual and real) are correctly shown in tree view. But not if you create an advanced filter to filter dates
as the calendar view will do.

Recurrent events are not in database but are created thanks to ``base_calendar`` modules and generates ``virtual ids`` for virtual events that stems out the recurrence rule of the first event.

The ``create``, ``write``, ``search`` rules are thus overwriden to catch any request on the database and try to give life to these virtual ids.

The ``search`` algorithm is quite bugged and seems to be half implemented.

I'm posting a branch to correct this behavior (and a bunch of other) in a short while.

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Hello Valentin,

I have merged Christophe's patch as it was compatible with the stable version (see merge prop for details).

Thanks for the report

Regards

revno: 9451 [merge]
revision-id: <email address hidden>

Changed in openobject-addons:
status: Confirmed → Fix Released
Changed in openobject-addons:
milestone: none → 7.0
Revision history for this message
Bill Ennals (bennals) wrote :

Thanks Valentin, Christophe and Martin. Very much appreciate this bug being fixed.

Bill.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.