[FIX] website_forum: fixed badges pgae

bzr revid: tde@openerp.com-20140411182751-immtoih95el07n6n
This commit is contained in:
Thibault Delavallée 2014-04-11 20:27:51 +02:00
parent 06776da4a9
commit 4c8418648f
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ class WebsiteForum(http.Controller):
def badges(self, forum, **searches):
cr, uid, context = request.cr, request.uid, request.context
Badge = request.registry['gamification.badge']
badge_ids = Badge.search(cr, uid, [('challenge_id.category', '=', 'forum')], context=context)
badge_ids = Badge.search(cr, SUPERUSER_ID, [('challenge_ids.category', '=', 'forum')], context=context)
badges = Badge.browse(cr, uid, badge_ids, context=context)
values = self._prepare_forum_values(forum=forum, searches={'badges': True})
values.update({