diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-06-01 16:04:24 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-06-02 11:07:19 +0200 |
| commit | b5aeaa910d5c893c5db0189816b83420c92df4a3 (patch) | |
| tree | 15af2a32da4789d789ea54973c60f1acb20ad92b /addons/website_forum/controllers/main.py | |
| parent | 79477b8d96be47cca5609ce5e4dd84a7e7f64f0a (diff) | |
[FIX] website_forum: archived forum -> no ask
An archived forum could still be posted in, something better should be
done in the next version (eg. website published present on a lot of
record type) but as of 10.0 just this improvement is done.
opw-745510
closes #17365
Diffstat (limited to 'addons/website_forum/controllers/main.py')
| -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 2294daf73de..19ec7e2713f 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -152,7 +152,7 @@ class WebsiteForum(http.Controller): question_ids = Post.search(domain, limit=self._post_per_page, offset=pager['offset'], order=sorting) - values = self._prepare_forum_values(forum=forum, searches=post) + values = self._prepare_forum_values(forum=forum, searches=post, header={'ask_hide': not forum.active}) values.update({ 'main_object': tag or forum, 'question_ids': question_ids, |
