From 9f73ff62f0910fd64f369db3747a571de3c5e30c Mon Sep 17 00:00:00 2001 From: David Beguin Date: Fri, 31 Jan 2020 14:07:28 +0000 Subject: [PATCH] [FIX] website_slides: save video thumbnail on slide creation Linked to issue: https://github.com/odoo/odoo/issues/43745 At slide creation, as image_1920 was in readonly mode in form view when type is video, document or presentation, the field was not sent in value to the create. There is no reason to set this field readonly. If the user want to modify the thumbnail, that his responsability. This commit remove the readonly flag for slide.image_1920 field to allow computed thumbnail to be saved at slide creation. Task ID: 2182638 PR #44405 closes odoo/odoo#44472 X-original-commit: 15af8734c5d16a358cababb6163863b30e24f8cc Signed-off-by: Yannick Tivisse (yti) --- addons/website_slides/views/slide_slide_views.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/website_slides/views/slide_slide_views.xml b/addons/website_slides/views/slide_slide_views.xml index 1f98a26f89d..70e169e084f 100644 --- a/addons/website_slides/views/slide_slide_views.xml +++ b/addons/website_slides/views/slide_slide_views.xml @@ -46,8 +46,7 @@ + attrs="{'invisible': [('is_category', '=', True)]}"/>