From 4e95474ca119342ab94bc29263015b1fd3fe5076 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 10 Mar 2017 17:06:47 +0100 Subject: [PATCH] [FIX] website_event_track: Tracks in the wrong room in the agenda When setting an event tracks like this: - Track 1, 10:00 to 10:30 Room A - Track 2, 10:30 to 11:00 Room B - Track 3, 11:00 to 11:30 Room A In the agenda of the event, on the website, the Track 2 was displayed as in the Room A, while it should be in the Room B opw-715480 --- addons/website_event_track/controllers/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_event_track/controllers/event.py b/addons/website_event_track/controllers/event.py index 831ffde0729..a2a8d83271a 100644 --- a/addons/website_event_track/controllers/event.py +++ b/addons/website_event_track/controllers/event.py @@ -40,7 +40,7 @@ class website_event(http.Controller): for loc in locations.keys(): if locations[loc] and (locations[loc][-1][2] > start_date): locations[loc][-1][3] += 1 - elif not locations[loc] or locations[loc][-1][2] < start_date: + elif not locations[loc] or locations[loc][-1][2] <= start_date: locations[loc].append([False, locations[loc] and locations[loc][-1][2] or dates[0][0], start_date, 1]) dates[-1][1][loc] = locations[loc][-1] forcetr = not bool(location)