[FIX] theme_*: remove duplicate and conflicting classes from new pages

Given that the duplicate and conflicting classes resolved by the
previous commit did still exist at the time new page templates were
introduced in [1], they could not be avoided for new page templates
snippets.

This commit removes those from the new page templates snippets now that
they have been removed from the base snippets.

[1]: https://github.com/odoo/design-themes/commit/80cbee66f6bb4d897dd7e577f1109c75f6f6ad74

task-3562147

X-original-commit: 9984745d3d
Part-of: odoo/design-themes#744
This commit is contained in:
Benoit Socias
2023-10-24 13:38:32 +02:00
parent 76e9cbcdb6
commit 1a96421764
26 changed files with 1356 additions and 167 deletions
+12 -17
View File
@@ -41,7 +41,7 @@
<template id="new_page_template_s_cover" inherit_id="website.new_page_template_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height o_cc5" remove="o_full_screen_height" separator=" "/>
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
</xpath>
</template>
@@ -60,12 +60,6 @@
<xpath expr="//div[hasclass('o_we_shape')]" position="replace"/>
</template>
<template id="new_page_template_s_picture_only" inherit_id="website.new_page_template_s_picture_only" primary="True">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
</xpath>
</template>
<!-- Snippet customization Basic Pages -->
<template id="new_page_template_basic_2_s_text_block_h1" inherit_id="website.new_page_template_basic_2_s_text_block_h1">
@@ -76,9 +70,9 @@
<!-- Snippet customization About Pages -->
<template id="new_page_template_about_s_cover" inherit_id="website.new_page_template_about_s_cover">
<template id="new_page_template_about_full_s_numbers" inherit_id="website.new_page_template_about_full_s_numbers">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
<attribute name="class" remove="o_cc3" separator=" "/>
</xpath>
</template>
@@ -88,9 +82,9 @@
</xpath>
</template>
<template id="new_page_template_about_full_s_numbers" inherit_id="website.new_page_template_about_full_s_numbers">
<template id="new_page_template_about_personal_s_numbers" inherit_id="website.new_page_template_about_personal_s_numbers">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
<attribute name="class" remove="o_cc3" separator=" "/>
</xpath>
</template>
@@ -105,12 +99,6 @@
</xpath>
</template>
<template id="new_page_template_landing_2_s_cover" inherit_id="website.new_page_template_landing_2_s_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
</xpath>
</template>
<template id="new_page_template_landing_3_s_call_to_action" inherit_id="website.new_page_template_landing_3_s_call_to_action">
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Rainy/05_001","flip":[]}</attribute>
@@ -120,6 +108,13 @@
</xpath>
</template>
<template id="new_page_template_landing_4_s_cover" inherit_id="website.new_page_template_landing_4_s_cover">
<xpath expr="//section" position="attributes">
<!-- Added on all new page template s_cover by theme and on generic landing 4 -->
<attribute name="class" add="o_half_screen_height" remove="o_half_screen_height" separator=" "/>
</xpath>
</template>
<!-- Snippet customization Gallery Pages -->
<!-- Snippet customization Services Pages -->