From 2a2fd932af671c07f3a3f773a7a17cd1a9a201b0 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Mon, 11 Dec 2023 11:55:38 +0100 Subject: [PATCH] [FIX] website: fix toggle redirect compressed layout in page properties Before this commit and since [1] when the website builder was moved from the "frontend" to the "backend" of Odoo in Odoo 16, the option to enable URL redirect when updating a page URL was "compressed": - The toggle/switch element has not enough room to be displayed entirely if there were too many dependencies - The toggle/switch label was split in multiple lines, words could even be split in 2. Step to reproduce: - Go to / in the website builder (so the / finds a lot of dependencies) - Open page property - Change the URL field, you see the redirect url field appear with the mentioned issues. Note: - In other languages, the switch label could be even longer, splitting the line makes even more sense - Removing a class is generally something to be avoided in stable, but this type of class should not be xpath'd anyway. And given the template structure, it's unlikely someone would have xpath it as it's easy to xpath any element without relying on classes. One solution would have been to add a new class to cancel the first one but it seems overkill in this case. [1]: https://github.com/odoo/odoo/commit/2ef7e788263b4742a8e0788f47673b7b31da3726 closes odoo/odoo#146244 X-original-commit: 8c17c487e6632192874133a2ce4265a0f1eaf6fb Signed-off-by: Outagant Mehdi (mou) Signed-off-by: Romain Derie (rde) --- addons/website/static/src/components/fields/fields.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/components/fields/fields.xml b/addons/website/static/src/components/fields/fields.xml index 44fa7e507ae..eae6b5b4610 100644 --- a/addons/website/static/src/components/fields/fields.xml +++ b/addons/website/static/src/components/fields/fields.xml @@ -22,7 +22,7 @@ />
-
+