diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py
index e255ce8d9b167355345d1ca2422b02e354116c2e..3078322b472b55143983adff5a1436b2aae880ef 100644
--- a/addons/gamification/models/challenge.py
+++ b/addons/gamification/models/challenge.py
@@ -477,7 +477,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: