From e2b64ed35b713a85e0de763a36a037626b9ac3a8 Mon Sep 17 00:00:00 2001 From: "Serge Bayet (seba)" Date: Wed, 5 Jun 2024 15:22:30 +0200 Subject: [PATCH] [REF] website, website_*: migrate from deprecated t-esc to t-out This commit updates all instances of the deprecated t-esc attribute within the website and website_* modules to use the recommended t-out attribute. It also intentionally avoids modifying an XPath expression targeting a t-esc attribute in crm_lead_views.xml of the website_crm_partner_assign module. This exception is made to prevent potential breakage of the inherited view within the CRM module. See also : https://github.com/odoo/design-themes/pull/804 task-3573251 --- .../configurator/configurator.xml | 12 ++-- .../website_dashboard/website_dashboard.xml | 2 +- .../static/src/components/dialog/dialog.xml | 6 +- .../src/components/dialog/edit_menu.xml | 2 +- .../src/components/dialog/page_properties.xml | 10 +-- .../static/src/components/dialog/seo.xml | 24 +++---- .../static/src/components/fields/fields.xml | 4 +- .../src/components/fields/publish_button.xml | 4 +- .../resource_editor/resource_editor.xml | 12 ++-- .../static/src/components/switch/switch.js | 2 +- .../static/src/components/views/page_list.xml | 2 +- .../view_hierarchy/hierarchy_navbar.xml | 2 +- .../backend/view_hierarchy/view_hierarchy.xml | 12 ++-- .../static/src/snippets/s_searchbar/000.xml | 2 +- .../src/systray_items/edit_in_backend.xml | 2 +- .../static/src/systray_items/new_content.xml | 4 +- .../static/src/systray_items/publish.js | 2 +- .../src/systray_items/website_switcher.xml | 2 +- addons/website/static/src/xml/website.xml | 8 +-- .../website/static/src/xml/website_form.xml | 2 +- .../static/src/xml/website_form_editor.xml | 16 ++--- addons/website/tests/test_http_endpoint.py | 2 +- addons/website/tests/test_page.py | 2 +- .../views/snippets/s_call_to_action.xml | 2 +- addons/website/views/snippets/s_cover.xml | 2 +- .../views/snippets/s_dynamic_snippet.xml | 2 +- .../s_mega_menu_big_icons_subtitles.xml | 4 +- .../views/snippets/s_mega_menu_cards.xml | 4 +- .../snippets/s_mega_menu_images_subtitles.xml | 4 +- .../snippets/s_mega_menu_menu_image_menu.xml | 4 +- .../snippets/s_mega_menu_multi_menus.xml | 4 +- .../views/snippets/s_mega_menu_thumbnails.xml | 2 +- .../views/snippets/s_product_catalog.xml | 4 +- .../website/views/snippets/s_text_cover.xml | 2 +- addons/website/views/snippets/snippets.xml | 10 +-- addons/website/views/website_pages_views.xml | 4 +- addons/website/views/website_templates.xml | 50 ++++++------- addons/website/views/website_views.xml | 4 +- addons/website_blog/data/mail_templates.xml | 2 +- .../views/website_blog_components.xml | 18 ++--- .../views/website_blog_posts_loop.xml | 18 ++--- .../views/website_blog_templates.xml | 24 +++---- .../views/website_pages_views.xml | 6 +- .../data/crm_lead_merge_template.xml | 2 +- .../views/crm_lead_views.xml | 4 +- .../website_crm_partner_assign_templates.xml | 22 +++--- .../views/website_sale_templates.xml | 2 +- addons/website_forum/data/mail_templates.xml | 6 +- .../static/src/xml/public_templates.xml | 4 +- .../views/base_contact_templates.xml | 10 +-- .../website_forum/views/forum_post_views.xml | 4 +- .../static/src/xml/recent_link.xml | 12 ++-- .../views/website_links_graphs.xml | 16 ++--- .../static/src/web/thread_patch.xml | 8 +-- .../views/website_livechat.xml | 20 +++--- .../views/snippets_templates.xml | 2 +- .../views/website_membership_templates.xml | 8 +-- .../src/snippets/s_donation/options.xml | 6 +- .../website_profile/views/website_profile.xml | 44 ++++++------ .../data/product_snippet_template_data.xml | 4 +- .../src/xml/website_sale_reorder_modal.xml | 8 +-- .../views/product_configurator.xml | 2 +- .../views/product_image_views.xml | 2 +- .../website_sale/views/snippets/snippets.xml | 2 +- addons/website_sale/views/templates.xml | 70 +++++++++---------- .../views/website_pages_views.xml | 2 +- .../website_sale_comparison_template.xml | 10 +-- .../views/website_sale_templates.xml | 18 ++--- .../views/templates.xml | 2 +- .../views/website_sale_templates.xml | 2 +- .../views/website_slides_templates.xml | 8 +-- .../data/template_email.xml | 6 +- ...ebsite_sale_stock_product_availability.xml | 4 +- .../views/website_sale_wishlist_template.xml | 4 +- addons/website_slides/data/mail_templates.xml | 12 ++-- .../email_sharing_input.xml | 2 +- .../static/src/xml/slide_course_join.xml | 4 +- .../static/src/xml/slide_quiz.xml | 12 ++-- .../static/src/xml/slide_quiz_create.xml | 2 +- .../views/website_slides_templates_course.xml | 70 +++++++++---------- .../website_slides_templates_homepage.xml | 38 +++++----- .../views/website_slides_templates_lesson.xml | 38 +++++----- .../website_slides_templates_lesson_embed.xml | 6 +- ...ite_slides_templates_lesson_fullscreen.xml | 10 +-- .../website_slides_templates_profile.xml | 4 +- .../views/website_slides_templates_utils.xml | 2 +- .../views/website_profile.xml | 10 +-- .../static/src/xml/website.twitter.xml | 8 +-- 88 files changed, 419 insertions(+), 419 deletions(-) diff --git a/addons/website/static/src/client_actions/configurator/configurator.xml b/addons/website/static/src/client_actions/configurator/configurator.xml index 9acf867ce473d..93350f2950084 100644 --- a/addons/website/static/src/client_actions/configurator/configurator.xml +++ b/addons/website/static/src/client_actions/configurator/configurator.xml @@ -35,7 +35,7 @@ diff --git a/addons/website/static/src/client_actions/website_dashboard/website_dashboard.xml b/addons/website/static/src/client_actions/website_dashboard/website_dashboard.xml index f961c216fd3fe..96d2f1cb00e18 100644 --- a/addons/website/static/src/client_actions/website_dashboard/website_dashboard.xml +++ b/addons/website/static/src/client_actions/website_dashboard/website_dashboard.xml @@ -9,7 +9,7 @@ diff --git a/addons/website/static/src/components/dialog/dialog.xml b/addons/website/static/src/components/dialog/dialog.xml index 77ece7edbb00a..41380cca28949 100644 --- a/addons/website/static/src/components/dialog/dialog.xml +++ b/addons/website/static/src/components/dialog/dialog.xml @@ -7,16 +7,16 @@ title="props.title"> - + diff --git a/addons/website/static/src/components/dialog/edit_menu.xml b/addons/website/static/src/components/dialog/edit_menu.xml index e0e1026de4371..026a7bf663874 100644 --- a/addons/website/static/src/components/dialog/edit_menu.xml +++ b/addons/website/static/src/components/dialog/edit_menu.xml @@ -28,7 +28,7 @@ - + Mega Menu diff --git a/addons/website/static/src/components/dialog/page_properties.xml b/addons/website/static/src/components/dialog/page_properties.xml index 5addb48535457..1a7f58961d777 100644 --- a/addons/website/static/src/components/dialog/page_properties.xml +++ b/addons/website/static/src/components/dialog/page_properties.xml @@ -23,13 +23,13 @@
It looks like your file is being called by - . + . Changing its name will break these calls.
- (could be used in ) + (could be used in )
@@ -41,8 +41,8 @@ t-attf-href="#collapseDependencies{{ dependency_index }}" aria-expanded="false"> - : - found(s) + : + found(s) @@ -38,7 +38,7 @@ - + @@ -49,7 +49,7 @@ Loading...
  • - +
  • @@ -69,7 +69,7 @@ @@ -101,10 +101,10 @@
    -
    +
    -
    -
    +
    +
    @@ -132,7 +132,7 @@ +
    @@ -861,7 +861,7 @@ @@ -876,7 +876,7 @@ diff --git a/addons/website_event_sale/views/website_sale_templates.xml b/addons/website_event_sale/views/website_sale_templates.xml index eeb1e07558483..194d8dda9ead8 100644 --- a/addons/website_event_sale/views/website_sale_templates.xml +++ b/addons/website_event_sale/views/website_sale_templates.xml @@ -70,7 +70,7 @@
    - +
    - +
    - +
    diff --git a/addons/website_sale/views/product_configurator.xml b/addons/website_sale/views/product_configurator.xml index df047482170da..9c094a44b7288 100644 --- a/addons/website_sale/views/product_configurator.xml +++ b/addons/website_sale/views/product_configurator.xml @@ -65,7 +65,7 @@
    @@ -264,12 +264,12 @@
    - + @@ -381,11 +381,11 @@
    - No results found for ''. Showing results for ''. + No results found for ''. Showing results for ''.
    - Drag building blocks here to customize the header for "" category. + Drag building blocks here to customize the header for "" category.
    @@ -425,7 +425,7 @@

    No results

    -

    No results for "" in category "".

    +

    No results for "" in category "".

    Click 'New' in the top-right corner to create your first product.

    @@ -908,7 +908,7 @@
    @@ -995,7 +995,7 @@ @@ -1055,8 +1055,8 @@
    - + -
    @@ -1868,7 +1868,7 @@ t-att-data-mode="mode" t-att-data-partner-id="contact.id">
    @@ -2396,7 +2396,7 @@ - + Total: @@ -2411,8 +2411,8 @@
    -
    Billing & Delivery:
    -
    Delivery:
    +
    Billing & Delivery:
    +
    Delivery:
    @@ -2529,12 +2529,12 @@ Your payment has been authorized. - +
    - Communication: + Communication:
    -
    +
    @@ -658,8 +658,8 @@ @@ -695,8 +695,8 @@ @@ -704,8 +704,8 @@ @@ -763,7 +763,7 @@
    - +
    - No content was found using your search . + No content was found using your search .
    @@ -815,11 +815,11 @@
    -