Skip to content
Snippets Groups Projects
Commit e4cb5619 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

Merge pull request #1067 from odoo-dev/saas-5-forum-answer-order-fix-htr

[FIX] website_forum: fix answers display order (correct, then votes, then write_date)
parents 8eb97cc0 ea470b67
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class Post(osv.Model):
_name = 'forum.post'
_description = 'Forum Post'
_inherit = ['mail.thread', 'website.seo.metadata']
_order = "is_correct DESC, vote_count DESC"
_order = "is_correct DESC, vote_count DESC, write_date DESC"
def _get_user_vote(self, cr, uid, ids, field_name, arg, context):
res = dict.fromkeys(ids, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment