diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-03-14 12:50:25 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-03-14 12:50:25 +0100 |
| commit | 7944aed2553ea6d191e11ffce63e703c5bc3f73a (patch) | |
| tree | 62425c7c07e5193452984eccd1d2a8e2fbc3d62c | |
| parent | f7693ee66c023a4b4896d34af3b338a311ddd3fa (diff) | |
[FIX] correct domain search
bzr revid: mat@openerp.com-20130314115025-kdxw05brszr32j6b
| -rw-r--r-- | addons/gamification/badge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/gamification/badge.py b/addons/gamification/badge.py index d3a23dd7877..2ba9f5f6c1b 100644 --- a/addons/gamification/badge.py +++ b/addons/gamification/badge.py @@ -98,7 +98,7 @@ class gamification_badge(osv.Model): first_month_day = date.today().replace(day=1).isoformat() for obj in self.browse(cr, uid, ids, context=context): result[obj.id] = len(self.pool.get('gamification.badge.user').search( - cr, uid, [('badge_id', '=', obj.id), ('user_id', '=', uid) + cr, uid, [('badge_id', '=', obj.id), ('user_id', '=', uid), ('create_date', '>=', first_month_day)], context=context)) return result |
