[MERGE] forward port of branch 8.0 up to 491372e
[odoo/odoo.git] / addons / website_forum / controllers / main.py
index 4da63e7..5aca5df 100644 (file)
@@ -237,7 +237,7 @@ class WebsiteForum(http.Controller):
 
     @http.route('/forum/<model("forum.forum"):forum>/question/<model("forum.post"):question>/reopen', type='http', auth="user", methods=['POST'], website=True)
     def question_reopen(self, forum, question, **kwarg):
-        question.state = 'active'
+        question.reopen()
         return werkzeug.utils.redirect("/forum/%s/question/%s" % (slug(forum), slug(question)))
 
     @http.route('/forum/<model("forum.forum"):forum>/question/<model("forum.post"):question>/delete', type='http', auth="user", methods=['POST'], website=True)