diff options
| author | Denis Ledoux <dle@odoo.com> | 2017-03-10 17:06:47 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2017-03-10 17:09:11 +0100 |
| commit | 4e95474ca119342ab94bc29263015b1fd3fe5076 (patch) | |
| tree | 368a7908284d90a3e426ddd7f249deeeccde69be /addons | |
| parent | 466e2b8c9fd4454aa46782fdbba5722285f30b53 (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_event_track/controllers/event.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
