← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hello Omar (Pexego),

Thanks for pointing out the issue and the patch.
It has been improved in trunk with revision-info as 1682 nch@xxxxxxxxxxx-20101112090306-4k2nj4e3g7ziuhgk
authored to you.


Thanks,

** Changed in: openobject-client
       Status: Confirmed => In Progress

** Changed in: openobject-client
       Status: In Progress => Fix Released

-- 
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: Fix Released

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