diff options
| author | Lavish Chhatwani <lch@odoo.com> | 2020-12-11 05:03:40 +0000 |
|---|---|---|
| committer | Lavish Chhatwani <lch@odoo.com> | 2020-12-11 05:03:56 +0000 |
| commit | 363dcd4e19e88854118e10c11ee2c6bbdf13b537 (patch) | |
| tree | 6162849a83e280504803fc3478466ccc2a3f6142 /addons/website_slides | |
| parent | 6abd50ae8e1b19339163c717705826544e222e13 (diff) | |
[FIX] websites_slides: remove active test from context
Before Commit :
-when user archive a course content, it's still visible
on the course itself, without real difference between
active content and archived. it was confusing.
After Commit :
-now when user archive a course content, it's not visible
anymore on the course.
closes odoo/odoo#63204
Task-id: 2411211
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides')
| -rw-r--r-- | addons/website_slides/models/slide_channel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/models/slide_channel.py b/addons/website_slides/models/slide_channel.py index 2d70e8943ac..b04f7a529a1 100644 --- a/addons/website_slides/models/slide_channel.py +++ b/addons/website_slides/models/slide_channel.py @@ -105,7 +105,7 @@ class Channel(models.Model): 'slide.channel.tag', 'slide_channel_tag_rel', 'channel_id', 'tag_id', string='Tags', help='Used to categorize and filter displayed channels/courses') # slides: promote, statistics - slide_ids = fields.One2many('slide.slide', 'channel_id', string="Slides and categories", context={'active_test': False}) + slide_ids = fields.One2many('slide.slide', 'channel_id', string="Slides and categories") slide_content_ids = fields.One2many('slide.slide', string='Slides', compute="_compute_category_and_slide_ids") slide_category_ids = fields.One2many('slide.slide', string='Categories', compute="_compute_category_and_slide_ids") slide_last_update = fields.Date('Last Update', compute='_compute_slide_last_update', store=True) |
