summaryrefslogtreecommitdiff
path: root/addons/gamification
diff options
context:
space:
mode:
Diffstat (limited to 'addons/gamification')
-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 b2f9289303e..2a1be3c6b88 100644
--- a/addons/gamification/models/challenge.py
+++ b/addons/gamification/models/challenge.py
@@ -472,7 +472,7 @@ class Challenge(models.Model):
('state', '!=', 'draft'),
]
if restrict_goals:
- domain.append(('ids', 'in', restrict_goals.ids))
+ domain.append(('id', 'in', restrict_goals.ids))
else:
# if no subset goals, use the dates for restriction
if start_date: