diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-03-11 14:12:58 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-03-11 14:12:58 +0100 |
| commit | b59be87a181eb795019880b803de655cea1ef673 (patch) | |
| tree | ccea09bddab3b395be6f24e7879476a340e9ef75 /addons/gamification/models/challenge.py | |
| parent | f5989bc3d8f10a0354a7d085576276d4e1778fbd (diff) | |
| parent | a0c5cf68ca1191c9bc1fce7909c1fd8fc0633e29 (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.py | 2 |
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) |
