diff options
| author | Romain Derie <rde@odoo.com> | 2020-02-13 13:45:15 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2020-02-18 16:04:11 +0000 |
| commit | b997684b062bb1010c52f4af49f72f2be570e392 (patch) | |
| tree | c4815311940cc68c6ac569156862d45143f88c6e /addons/website_forum/controllers | |
| parent | 601795ba4e0255765a029ae38583a8dfcb648475 (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.py | 2 |
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: |
