[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

Part-of: odoo/design-themes#731
This commit is contained in:
Benoit Socias
2023-10-24 13:38:32 +02:00
parent f3da06dc68
commit 9984745d3d
26 changed files with 1356 additions and 167 deletions
+28 -2
View File
@@ -56,7 +56,7 @@
<template id="new_page_template_basic_s_features" inherit_id="website.new_page_template_basic_s_features">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" separator=" "/>
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
</template>
@@ -132,7 +132,13 @@
<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_cc2" remove="o_cc3" separator=" "/>
<attribute name="class" add="o_cc2 pt24" remove="o_cc3 pt0" separator=" "/>
</xpath>
</template>
<template id="new_page_template_about_full_s_text_image" inherit_id="website.new_page_template_about_full_s_text_image">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt56" separator=" "/>
</xpath>
</template>
@@ -153,11 +159,19 @@
</xpath>
</template>
<template id="new_page_template_about_personal_s_numbers" inherit_id="website.new_page_template_about_personal_s_numbers">
<xpath expr="//section" position="attributes">
<!-- Added by both theme and new page template -->
<attribute name="class" add="pt0" remove="pt0" separator=" "/>
</xpath>
</template>
<!-- Snippet customization Landing Pages -->
<template id="new_page_template_landing_s_text_image" inherit_id="website.new_page_template_landing_s_text_image">
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt56" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/22","flip":["x"]}</attribute>
</xpath>
<!-- Shape -->
@@ -194,6 +208,12 @@
<!-- Snippet customization Services Pages -->
<template id="new_page_template_services_s_text_image" inherit_id="website.new_page_template_services_s_text_image">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt56" separator=" "/>
</xpath>
</template>
<!-- Snippet customization Pricing Pages -->
<template id="new_page_template_pricing_s_cover" inherit_id="website.new_page_template_pricing_s_cover">
@@ -225,4 +245,10 @@
<!-- Snippet customization Team Pages -->
<template id="new_page_template_team_s_text_image" inherit_id="website.new_page_template_team_s_text_image">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt56" separator=" "/>
</xpath>
</template>
</odoo>