diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index f196909b065..b94e818d0c5 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -599,6 +599,7 @@ class WebsiteForum(http.Controller): Badge = request.registry['gamification.badge'] badge_ids = Badge.search(cr, SUPERUSER_ID, [('challenge_ids.category', '=', 'forum')], context=context) badges = Badge.browse(cr, uid, badge_ids, context=context) + badges = sorted(badges, key=lambda b: b.stat_count_distinct, reverse=True) values = self._prepare_forum_values(forum=forum, searches={'badges': True}) values.update({ 'badges': badges, diff --git a/addons/website_forum/data/badges_participation.xml b/addons/website_forum/data/badges_participation.xml index 05c2540d77d..fc07eaaf864 100644 --- a/addons/website_forum/data/badges_participation.xml +++ b/addons/website_forum/data/badges_participation.xml @@ -78,16 +78,16 @@ 10 - + Pundit - Left comments with score of 10 or more + Left 10 answers with score of 10 or more silver nobody Pundit - Post 10 comments with score of 10 or more + Post 10 answers with score of 10 or more boolean higher diff --git a/addons/website_forum/data/badges_question.xml b/addons/website_forum/data/badges_question.xml index ff2d63c034d..39c1fca9f20 100644 --- a/addons/website_forum/data/badges_question.xml +++ b/addons/website_forum/data/badges_question.xml @@ -372,7 +372,7 @@ count boolean - [('parent_id', '=', False), ('is_correct', '=', True)] + [('parent_id', '=', False), ('has_validated_answer', '=', True)] higher True diff --git a/addons/website_forum/data/forum_data.xml b/addons/website_forum/data/forum_data.xml index a387a8de7ae..2db99477f61 100644 --- a/addons/website_forum/data/forum_data.xml +++ b/addons/website_forum/data/forum_data.xml @@ -70,9 +70,6 @@ not a real question - - already answered and an answer was accepted - not relevant or out dated diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index 0f132c48420..c47d15004dd 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -436,7 +436,7 @@

- The question has been closed for reason: + The question has been closed for reason:

by
+ Asked on