summaryrefslogtreecommitdiff
path: root/addons/website_event_track/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-03-13 16:22:57 +0100
committerChristophe Simonis <chs@odoo.com>2017-03-13 16:22:57 +0100
commit777a87cde8fbee8495c95891d5cb2104cf9160e6 (patch)
tree6a1ff070a975ba530ce851ad4ec22d1eba18f2bd /addons/website_event_track/controllers
parent62c9cae2699055d32dc872f269e68ca5c1f34889 (diff)
parent2ef43281c26b7511f4a884530ff01db876fc5ad2 (diff)
[MERGE] forward port branch 10.0 up to 2ef43281c26
Diffstat (limited to 'addons/website_event_track/controllers')
-rw-r--r--addons/website_event_track/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event_track/controllers/main.py b/addons/website_event_track/controllers/main.py
index 544c749c635..a1bd858ffdd 100644
--- a/addons/website_event_track/controllers/main.py
+++ b/addons/website_event_track/controllers/main.py
@@ -50,7 +50,7 @@ class WebsiteEventTrackController(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)