summaryrefslogtreecommitdiff
path: root/addons/gamification/models
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2014-05-14 16:15:18 +0200
committerMartin Trigaux <mat@openerp.com>2014-05-14 16:15:18 +0200
commit8f2bbf73ae5943a0cd35de3f3f48482575f4fe2c (patch)
tree17278729e99fe3380215e3120d28b57720c31f56 /addons/gamification/models
parent8145c52dea43c51c3997fc5aa8740dccfaadf5d0 (diff)
[FIX] gamification: avoid sending reports for non-reported challenges
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 9612cf4a05e..ed6016b9665 100644
--- a/addons/gamification/models/challenge.py
+++ b/addons/gamification/models/challenge.py
@@ -324,7 +324,7 @@ class gamification_challenge(osv.Model):
('end_date', '<=', challenge.last_report_date)
])
- if fields.date.today() >= challenge.next_report_date:
+ if challenge.next_report_date and fields.date.today() >= challenge.next_report_date:
self.report_progress(cr, uid, challenge, context=context)
elif len(closed_goals_to_report) > 0: