← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 803411] [NEW] [base_calendar] It gets recurrent dates from event_date to until_date but it must get from start_date to until_date

 

Public bug reported:

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.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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


Follow ups

References