summaryrefslogtreecommitdiff
path: root/addons/gamification/models/challenge.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-03-11 14:12:58 +0100
committerChristophe Simonis <chs@odoo.com>2016-03-11 14:12:58 +0100
commitb59be87a181eb795019880b803de655cea1ef673 (patch)
treeccea09bddab3b395be6f24e7879476a340e9ef75 /addons/gamification/models/challenge.py
parentf5989bc3d8f10a0354a7d085576276d4e1778fbd (diff)
parenta0c5cf68ca1191c9bc1fce7909c1fd8fc0633e29 (diff)
[MERGE] forward port of branch 8.0 up to a0c5cf6
Diffstat (limited to 'addons/gamification/models/challenge.py')
-rw-r--r--addons/gamification/models/challenge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py
index 7feab491ea1..b01e1b61552 100644
--- a/addons/gamification/models/challenge.py
+++ b/addons/gamification/models/challenge.py
@@ -277,7 +277,7 @@ class gamification_challenge(osv.Model):
# close scheduled challenges
planned_challenge_ids = self.search(cr, uid, [
('state', '=', 'inprogress'),
- ('end_date', '>=', fields.date.today())])
+ ('end_date', '<', fields.date.today())])
if planned_challenge_ids:
self.write(cr, uid, planned_challenge_ids, {'state': 'done'}, context=context)