[FIX]Display answers in order by posted date in descending (latest to old)

This commit is contained in:
Hitesh Trivedi 2014-07-07 12:00:19 +05:30
parent d9cda97cf4
commit ea470b67bf
1 changed files with 1 additions and 1 deletions

View File

@ -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)