From 4aa89f146e2d6c03df5803dbb196caf771269b35 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 17 Jun 2021 14:30:40 +0000 Subject: [PATCH] [FIX] website_slides: can edit frontend enroll message The frontend enroll message was display as a `` tag, but it seems that lxml HTMLParser parse it wrongly, for example: html.tostring(html.fromstring('

')) returns: '

' So branding attributes like data-oe-model that are on small tag are not found on root node that has become a `div` tag after parsing => this causes a traceback error when saving a change in this part. Fix: use small as wrapper for `
` tag that is treated correctly by HTMLParser (span is also treated correctly but div makes more sense here). opw-2573955 closes odoo/odoo#72315 X-original-commit: 6334c7282c19362ca8bc79dbaefe3d38c055e746 Signed-off-by: Nicolas Lempereur (nle) --- .../website_slides/views/website_slides_templates_course.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/website_slides/views/website_slides_templates_course.xml b/addons/website_slides/views/website_slides_templates_course.xml index a2b40070242..27ab0d45d2b 100644 --- a/addons/website_slides/views/website_slides_templates_course.xml +++ b/addons/website_slides/views/website_slides_templates_course.xml @@ -269,7 +269,9 @@
- + +
+