From b68cc2fc022533a455980fd1fb3d685787b2f881 Mon Sep 17 00:00:00 2001 From: Noe Antoine Date: Fri, 21 Jan 2022 10:19:36 +0000 Subject: [PATCH] [FIX] website_slides: restore 'latest created' default promote strategy To reproduce : - Create a new documentation course from front-end - Add a content there - Edit the course in backend => any attempt to save the record or exiting it will trigger an error as the specific option is set and no content has been manually set. This has been introduced in 2597345 => We restore the default 'latest created' that makes it work all the time. Task-2731468 closes odoo/odoo#83910 X-original-commit: 1973944c0cdd0ea3f706280875acedfbd190333e Signed-off-by: Thibault Delavallee (tde) --- addons/website_slides/models/slide_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_slides/models/slide_channel.py b/addons/website_slides/models/slide_channel.py index 21b09fac862..e0ae74a9aec 100644 --- a/addons/website_slides/models/slide_channel.py +++ b/addons/website_slides/models/slide_channel.py @@ -178,7 +178,7 @@ class Channel(models.Model): ('most_viewed', 'Most Viewed'), ('specific', 'Select Manually'), ('none', 'None')], - string="Featured Content", default='specific', required=False, + string="Featured Content", default='latest', required=False, help='Defines the content that will be promoted on the course home page', ) promoted_slide_id = fields.Many2one('slide.slide', string='Promoted Slide')