c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27608
[Bug 803411] Re: [base_calendar] It gets recurrent dates from event_date to until_date but it must get from start_date to until_date
** Patch added: "base_calendar.patch"
https://bugs.launchpad.net/bugs/803411/+attachment/2184359/+files/base_calendar.patch
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/803411
Title:
[base_calendar] It gets recurrent dates from event_date to until_date
but it must get from start_date to until_date
Status in OpenERP Modules (addons):
New
Bug description:
Hi,
I add date field to an object that inherit base.calendar in search view, for example crm.meeting, when I went to test it, I wrote in search widget "from 2011-06-01 00:00:00 to 2011-06-08 23:59:59" it returned all recurrent events with date before of 2011-06-08 23:59:59 but start_date before of 2011-06-01 00:00:00 it they started before this date.
Investigating this behavior I saw in base_calendar.py source in get_recurrent_ids() method that:
# To check: If the start date is replace by event date .. the event date will be changed by that of calendar code
start_date = event_date
Then it always overwrite start_date value with event_date (initial date of event), I commented this lines and it works perfectly.
Above the line is written "To check" please check your source and remove these messages in stable version...
I attach the patch for clarify the place, but this line must be
deleted.
Regards.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/803411/+subscriptions
References