summaryrefslogtreecommitdiff
path: root/addons/gamification/models
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-03-16 16:11:12 +0100
committerChristophe Simonis <chs@odoo.com>2016-03-16 16:11:12 +0100
commit1a3e807fc2117a8d0be00e2ced9dbbae6f3589ba (patch)
tree3cb1bab30b4aae3368febd4356aad67f29b04136 /addons/gamification/models
parentadddfa0d8b6f0b323c032409302b1b37d0b85601 (diff)
parent5238b77430bf42589a8772d55d9ebd8dde8e9cf5 (diff)
[MERGE] forward port of branch saas-7 up to 5238b77
Diffstat (limited to 'addons/gamification/models')
-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 9662cccfe5e..1a5446247f9 100644
--- a/addons/gamification/models/challenge.py
+++ b/addons/gamification/models/challenge.py
@@ -259,7 +259,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)