diff --git a/addons/website_slides_forum/controllers/main.py b/addons/website_slides_forum/controllers/main.py index 052df5f4de2..2331f11ca46 100644 --- a/addons/website_slides_forum/controllers/main.py +++ b/addons/website_slides_forum/controllers/main.py @@ -8,15 +8,12 @@ from odoo.addons.website_slides.controllers.main import WebsiteSlides class WebsiteSlidesForum(WebsiteSlides): def _slide_channel_prepare_values(self, **kwargs): - communication_type = kwargs.get('communication_type') channel = super(WebsiteSlidesForum, self)._slide_channel_prepare_values(**kwargs) - if communication_type: - if communication_type == 'forum': - forum = request.env['forum.forum'].create({ - 'name': kwargs.get('name') - }) - channel['forum_id'] = forum.id - channel['allow_comment'] = communication_type == 'comment' + if bool(kwargs.get('link_forum')): + forum = request.env['forum.forum'].create({ + 'name': kwargs.get('name') + }) + channel['forum_id'] = forum.id return channel # Profile diff --git a/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml b/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml index 03389f2a12d..f00c7e4e0ba 100644 --- a/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml +++ b/addons/website_slides_forum/static/src/xml/website_slides_forum_channel.xml @@ -1,32 +1,16 @@ - -
-
- Communication -
-
- - -
-
- - -
-
- - -
+ +
+
Communication
+
+
+ +
-
+