summaryrefslogtreecommitdiff
path: root/addons/website_event_track/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-03-13 15:53:55 +0100
committerChristophe Simonis <chs@odoo.com>2017-03-13 15:53:55 +0100
commit2ef43281c26b7511f4a884530ff01db876fc5ad2 (patch)
tree0c1ce89344bfb77f222fbf0fb6cc24f2743be2a5 /addons/website_event_track/controllers
parente88bb57a1ed6c4b5494c217c47a22b9509f8e1fb (diff)
parent2e972578b92202eeb53c3d581965bc0095535d6d (diff)
[MERGE] forward port branch saas-11 up to 2e972578b92
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 5e0f8b1e7a2..0ef57e418ff 100644
--- a/addons/website_event_track/controllers/main.py
+++ b/addons/website_event_track/controllers/main.py
@@ -38,7 +38,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)