From d26c55698ff422366ad31546f4275fb8be14a649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Hennecart=20=28jeh=29?= Date: Fri, 6 May 2022 08:31:28 +0000 Subject: [PATCH] [IMP] website_sale_slides: describe course unavailability When a product linked to a course is unpublished, the course is not buyable. This commit improves the design in this case. - Change the text of disabled button into "Course Unavailable" - Add an alert message to group_website_slides_officer letting them know that the course is not buyable because the product is unpublished task-2842624 Part-of: odoo/odoo#90736 --- .../views/website_slides_templates.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/addons/website_sale_slides/views/website_slides_templates.xml b/addons/website_sale_slides/views/website_slides_templates.xml index 0718abed84a..61b0ae0049f 100644 --- a/addons/website_sale_slides/views/website_slides_templates.xml +++ b/addons/website_sale_slides/views/website_slides_templates.xml @@ -68,6 +68,18 @@ + +