Julien Thewys (OpenERP) has proposed merging
lp:~openerp-groupes/openobject-client/fix_calendar_date_event into
lp:openobject-client.
Requested reviews:
OpenERP sa GTK client R&D (openerp-dev-gtk)
Fixes display of calendar event when boundaries are of type date.
Calendar events of type date were displayed like ending one day earlier than
they should be.
I'm proposing the same fix for web client.
--
https://code.launchpad.net/~openerp-groupes/openobject-client/fix_calendar_date_event/+merge/36266
Your team OpenERP sa GTK client R&D is requested to review the proposed merge
of lp:~openerp-groupes/openobject-client/fix_calendar_date_event into
lp:openobject-client.
=== modified file 'bin/widget/view/calendar_gtk/parser.py'
--- bin/widget/view/calendar_gtk/parser.py 2010-07-21 09:57:22 +0000
+++ bin/widget/view/calendar_gtk/parser.py 2010-09-22 08:55:59 +0000
@@ -408,8 +408,10 @@
if event[fld] and fmt:
event[fld] = time.strptime(event[fld][:19], fmt)
- # default start time is 9:00 AM
- if typ == 'date' and fld == self.date_start:
+ # default time is 9:00 AM (for start and stop date)
+ # if you set it to 0:00, then Calendar.Event removes 1 second to date_stop,
+ # which sets it back to the day before at 23:59:59
+ if typ == 'date':
if event[fld]:
ds = list(event[fld])
ds[3] = 9
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp