From c96760a76b89894acda592a33b366cb74aa51588 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 26 Dec 2023 14:08:19 +0000 Subject: [PATCH] [FIX] *: avoid translating CSS classes values *: project, survey, test_website, website_event, website_sale This commit fixes all found occurrences of such a case: ``` some_classes ``` => CSS classes being marked for translation by mistake. A breaking case was found via task-3636009, where the arabic language has a translated class on some element which makes some JS crash because of it. Steps to reproduce (only for 17.0): - Create a website with the "Arabic" language as the default language - Go to the shop page in Arabic - If you are in grid view, click on the "switch to list view" button and if you are in list view, click on the "switch to grid view" button => Crash Note that commit [1] already did something similar a while ago (but more generically than this commit). In this commit here, broken occurrences were found using this regex: ``` ``` [1]: https://github.com/odoo/odoo/commit/98678199a32b3ba9af999f76980a6110546ec0fc task-3636009 closes odoo/odoo#147688 X-original-commit: 01b223e3043a3d847fd7dbf8997edcee62c3254a Related: odoo/enterprise#53463 Signed-off-by: Romain Derie (rde) Signed-off-by: Quentin Smetz (qsm) --- .../project/views/project_portal_project_task_templates.xml | 2 +- addons/survey/views/survey_templates_statistics.xml | 2 +- addons/test_website/tests/test_website_controller_page.py | 2 +- .../website_event/views/event_templates_page_registration.xml | 4 ++-- addons/website_sale/views/templates.xml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/project/views/project_portal_project_task_templates.xml b/addons/project/views/project_portal_project_task_templates.xml index 97a8a32541f..f6458c06772 100644 --- a/addons/project/views/project_portal_project_task_templates.xml +++ b/addons/project/views/project_portal_project_task_templates.xml @@ -219,7 +219,7 @@
- fs-4 + fs-4

(#) diff --git a/addons/survey/views/survey_templates_statistics.xml b/addons/survey/views/survey_templates_statistics.xml index 27352aee1bf..c5b32868a2f 100644 --- a/addons/survey/views/survey_templates_statistics.xml +++ b/addons/survey/views/survey_templates_statistics.xml @@ -159,7 +159,7 @@