summaryrefslogtreecommitdiff
path: root/addons/website_forum/controllers
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-10-02 16:14:42 +0000
committerRomain Derie <rde@odoo.com>2018-10-11 17:08:20 +0000
commit47406d6e5d104ebcdf6cb05b73203563b27c3c37 (patch)
tree9d2cf9f38d6bc6913624252f6a66e67e72d46e59 /addons/website_forum/controllers
parent76cc621c1d85cd6eb3f3c8793a8f232f4a7b9056 (diff)
[FIX] website_hr(_recruitment): make website specific
As commit 066cfc9598a30 did for other website_module, this commit make theses 2 modules multi-website compatible. Mostly by: - Adding website_id in form/list views - Preventing routes from being accessed by wrong website (only needed for admin as portal users will get a 403) - Adapt search([]) with multi website domain - Add domain in model converter in routes for URL autocomplete (eg menu URL) Note that it is not needed for sitemap.xml closes odoo/odoo#27528
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 dd3606ca727..db85837d780 100644
--- a/addons/website_forum/controllers/main.py
+++ b/addons/website_forum/controllers/main.py
@@ -81,7 +81,7 @@ class WebsiteForum(http.Controller):
@http.route(['/forum'], type='http', auth="public", website=True)
def forum(self, **kwargs):
- domain = request.website.get_current_website().website_domain()
+ domain = request.website.website_domain()
forums = request.env['forum.forum'].search(domain)
if len(forums) == 1:
return werkzeug.utils.redirect('/forum/%s' % slug(forums[0]), code=302)