diff options
| author | David Beguin <dbe@odoo.com> | 2019-02-14 10:45:26 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-02-18 15:15:02 +0000 |
| commit | 3ab9f1d8abeec6fcbe2fd0aedcf3712c3e3f583b (patch) | |
| tree | 4bf4d50910b9e0e339861a5eaa0bf48e8097d712 /addons/website_slides/controllers | |
| parent | 705376a982d64fb41800f148a167ef0fc28ce4c6 (diff) | |
[IMP] website_slides_forum : set communication on slide.channel at creation - frontend side
Since 556b6454dab07cdf716d404ec0db9aa51a09b165, channel can be linked to a dedicated forum.
But the link could only be done in backend, in the slide.channel configuration
For now on, website_publishers can create a new dedicated forum when they create
a new slide.channel.
Link buttons have been added in both forum and slide.channel headers to navigate easily
between them.
Fix the relation between course and forum in a model point of view.
Task ID : 1922159
PR #31109
Diffstat (limited to 'addons/website_slides/controllers')
| -rw-r--r-- | addons/website_slides/controllers/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website_slides/controllers/main.py b/addons/website_slides/controllers/main.py index ef4265055f6..e8ebae00b7b 100644 --- a/addons/website_slides/controllers/main.py +++ b/addons/website_slides/controllers/main.py @@ -96,6 +96,9 @@ class WebsiteSlides(WebsiteProfile): domain = expression.AND([domain, [('nbr_%ss' % slide_type, '>', 0)]]) return domain + def _prepare_channel_values(self, **kwargs): + return dict(**kwargs) + # -------------------------------------------------- # MAIN / SEARCH # -------------------------------------------------- |
