Skip to content
Snippets Groups Projects
Commit 0138a1a8 authored by niyasraphy's avatar niyasraphy
Browse files

[FIX] website_forum: show votes from same forum


before this commit, if the user profile is opened
from a particular forum, the votes tab is displaying
the votes from all the forums for this user.

where us, the questions and answers tab is filtering
the data based on the selected forum.

after this commit, the data displayed in the votes
tab will also be filtered based on selected forum,
similar to questions and answers tab.

closes odoo/odoo#131454

X-original-commit: ae33d2e3
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 667962da
Branches
Tags
No related merge requests found
......@@ -623,7 +623,7 @@ class WebsiteForum(WebsiteProfile):
down_votes = rec['vote_count']
# Votes which given by users on others questions and answers.
vote_ids = Vote.search([('user_id', '=', user.id)])
vote_ids = Vote.search([('user_id', '=', user.id), ('forum_id', 'in', forums.ids)])
# activity by user.
comment = Data._xmlid_lookup('mail.mt_comment')[2]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment