diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index fd44edb48a5..d0f47befb7b 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -301,7 +301,7 @@ class WebsiteForum(WebsiteProfile): type='http', auth="user", methods=['POST'], website=True) def post_create(self, forum, post_parent=None, **post): if post.get('content', '') == '


': - return request.render('website.http_error', { + return request.render('http_routing.http_error', { 'status_code': _('Bad Request'), 'status_message': post_parent and _('Reply should not be empty.') or _('Question should not be empty.') }) @@ -370,7 +370,7 @@ class WebsiteForum(WebsiteProfile): @http.route('/forum//post//save', type='http', auth="user", methods=['POST'], website=True) def post_save(self, forum, post, **kwargs): if 'post_name' in kwargs and not kwargs.get('post_name').strip(): - return request.render('website.http_error', { + return request.render('http_routing.http_error', { 'status_code': _('Bad Request'), 'status_message': _('Title should not be empty.') })