diff --git a/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py b/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py index 3a90ee5668..39a1315d0c 100644 --- a/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py +++ b/tryton/gui/window/view_form/view/calendar_gtk/calendar_.py @@ -95,6 +95,10 @@ class Calendar_(goocalendar.Calendar): elif not end: all_day = True + # Skip invalid event + if end is not None and start > end: + continue + # TODO define color code label = '\n'.join(record[attrs['name']].get_client(record) for attrs in self.fields).rstrip()