← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 578662] Re: Date range search incomplete

 

Hello Guys,

   It doesn't seem to be a generic issue. I have checked the same with
events and the server would give all the records in the result specific
to the given domain. If you want to change the domain you can have the
search() method overridden in the event module and you can add the
domain there and perform the search that will give all the required
results.

Thanks.

** Changed in: openobject-server
   Importance: High => Undecided

** Changed in: openobject-server
       Status: Confirmed => Triaged

** Changed in: openobject-server
    Milestone: 6.0 => None

-- 
Date range search incomplete 
https://bugs.launchpad.net/bugs/578662
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Triaged

Bug description:

Searching objects by specifying a date range does not always get all the objects that should match.

Let's say there is an event starting on 2010-05-07 and ending on 2010-07-01. If I search all the events for week 19: 2010-05-10 to 2010-05-16, I should get this event because it is occurring that week too. But in fact it does not appear in the list because the search domain used is:
  [('date_begin', '>=', '2010-05-10'), ('date_begin', '<=', '2010-05-16')]

Object being tested: 'event.event'
Version: 5.0