← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 537266] Re: gtk_calendar bad filters one or more months ago

 

** Changed in: openobject-client
       Status: New => Confirmed

** Changed in: openobject-client
   Importance: Undecided => Low

** Changed in: openobject-client
     Assignee: (unassigned) => OpenERP sa GTK client R&D (openerp-dev-gtk)

-- 
gtk_calendar bad filters one or more months ago
https://bugs.launchpad.net/bugs/537266
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject GTK Client: Confirmed

Bug description:
Hi, 

In trunk branch, calendar filters bad when click on last month button or last week button.

In get_calenderDomain, if old_date is today it filters one month ago and next month, it's correct, but when old_date isn't today for example when I click in last month, it only sets end_date to next month but start_date sets to old_date, that if you were located in for example 11 on March, today, when you click in last month your old_date is 11 on February and the created domain is: 
[('date', '>', '2010-02-11'), ('date', '<', '2010-03-11')] and it's not correct because I want to see all February month. I include a patch that filter in last month and next month always, or last week and next week if mode = 'week'. In web client it works.

Regards