summaryrefslogtreecommitdiff
path: root/addons/website_forum/controllers
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2020-02-13 13:45:15 +0000
committerRomain Derie <rde@odoo.com>2020-02-18 16:04:11 +0000
commitb997684b062bb1010c52f4af49f72f2be570e392 (patch)
treec4815311940cc68c6ac569156862d45143f88c6e /addons/website_forum/controllers
parent601795ba4e0255765a029ae38583a8dfcb648475 (diff)
[IMP] website, website_*: improvement of 7dd70438e1
* website_blog, website_event_track, website_forum, website_mail_channel 7dd70438e1ec was introduced in stable as a fix, which obviously had some stable policy preventing some changes. This commit improves that commit in master. task-2119086 closes odoo/odoo#45622 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_forum/controllers')
-rw-r--r--addons/website_forum/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py
index 31606e41a9a..412a711730f 100644
--- a/addons/website_forum/controllers/main.py
+++ b/addons/website_forum/controllers/main.py
@@ -201,7 +201,7 @@ class WebsiteForum(WebsiteProfile):
except IOError:
return False
- @http.route(['''/forum/<model("forum.forum"):forum>/question/<model("forum.post", "[('forum_id','=',forum[0]),('parent_id','=',False),('can_view', '=', True)]"):question>'''],
+ @http.route(['''/forum/<model("forum.forum"):forum>/question/<model("forum.post", "[('forum_id','=',forum.id),('parent_id','=',False),('can_view', '=', True)]"):question>'''],
type='http', auth="public", website=True, sitemap=True)
def question(self, forum, question, **post):
if not forum.active: