← Back to team overview

openerp-india team mailing list archive

[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

 

Fixed in trunk
Revision: 5928
revid:fp@xxxxxxxxxxx-20111211201237-gdi2te310wh2pa5z


** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
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/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 Addons (modules):
  Fix Released

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