Skip to content

Commit 6d4a180

Browse files
committed
[IMP] theme_*: adapt xpath to s_cover snippet minor changes
task-4505899 closes #1058 Related: odoo/odoo#200313 Related: odoo/enterprise#80744 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent 8c1b9bc commit 6d4a180

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

theme_enark/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<odoo>
33

44
<template id="s_cover" inherit_id="website.s_cover">
5-
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
5+
<xpath expr="//a[@href='/contactus']" position="replace"/>
66
</template>
77

88
</odoo>

theme_kiddo/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="attributes">
4848
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
4949
</xpath>
50-
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
50+
<xpath expr="//a[@href='/contactus']" position="replace"/>
5151
</template>
5252

5353
</odoo>

theme_loftspace/views/snippets/s_cover.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<p><br/></p>
1919
</xpath>
2020
<!-- Button -->
21-
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
21+
<xpath expr="//a[@t-att-href='cta_btn_href']/t" position="replace" mode="inner">
2222
Discover More
2323
</xpath>
24-
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="attributes">
24+
<xpath expr="//a[@t-att-href='cta_btn_href']" position="attributes">
2525
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
2626
</xpath>
27-
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
27+
<xpath expr="//a[@href='/contactus']" position="replace"/>
2828
</template>
2929

3030
</odoo>

theme_monglia/views/customizations.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
<h2 style="text-align: center;"><span class="display-5-fs">24-26.06.2025 // Harleem, Netherlands<br/><br/></span></h2>
4949
</xpath>
5050
<!-- Button -->
51-
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="attributes">
51+
<xpath expr="//a[@t-att-href='cta_btn_href']" position="attributes">
5252
<attribute name="class" add="btn-lg" separator=" "/>
5353
</xpath>
54-
<xpath expr="//a[@t-att-href='cta_btn_href'][1]" position="replace" mode="inner">
54+
<xpath expr="//a[@t-att-href='cta_btn_href']" position="replace" mode="inner">
5555
GET TICKETS NOW
5656
</xpath>
57-
<xpath expr="//a[@t-att-href='cta_btn_href'][2]" position="replace"/>
57+
<xpath expr="//a[@href='/contactus']" position="replace"/>
5858
</template>
5959

6060
<!-- ======== NUMBERS GRID ======== -->

theme_odoo_experts/views/snippets/s_cover.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
<br/>
2424
Guided by expertise gained over 20 years of achieving success for clients, we practice with passion and strategic focus on the future.
2525
</xpath>
26-
<!-- Button -->
27-
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
28-
Discover More
29-
</xpath>
3026
</template>
3127

3228
</odoo>

0 commit comments

Comments
 (0)