summaryrefslogtreecommitdiff
path: root/addons/website_forum/controllers
diff options
context:
space:
mode:
authorSébastien Mottet (oms) <oms@odoo.com>2020-03-31 09:47:27 +0000
committerSébastien Mottet (oms) <oms@odoo.com>2020-04-08 07:21:48 +0000
commite3b5b20b39ddd6faefb8edada3b0c42d769376c7 (patch)
tree111779bdcf607ad98e2b23fefd7d3f1d5c0bdde0 /addons/website_forum/controllers
parentdbb0222d63401fe1ab4fef17f318a137114b4d3c (diff)
[IMP] website_[profile|forum]: show filtering forum on user profile page
- A tag has been added next to the title of each tab in the profile when the user come from a specific forum. The goal is to indicate to the user that the displayed content is specific to a given forum. The tag can be clicked by the user to remove the applied filter. - Change label in edit profile page from "real name" to "name" Task Id: 2214425 closes odoo/odoo#48665 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_forum/controllers')
-rw-r--r--addons/website_forum/controllers/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py
index a07de8ae4e7..dfac6dc75a9 100644
--- a/addons/website_forum/controllers/main.py
+++ b/addons/website_forum/controllers/main.py
@@ -555,7 +555,10 @@ class WebsiteForum(WebsiteProfile):
forums = post['forum']
elif post.get('forum_id'):
forums = request.env['forum.forum'].browse(int(post['forum_id']))
- values.update({'edit_button_url_param': 'forum_id=' + str(post['forum_id'])})
+ values.update({
+ 'edit_button_url_param': 'forum_id=%s' % str(post['forum_id']),
+ 'forum_filtered': forums.name,
+ })
else:
forums = request.env['forum.forum'].search([])