Skip to content

Commit 8a824c5

Browse files
committed
[REF] theme_cobalt, *: migrate from deprecated t-esc to t-out
*: theme_graphene, theme_kiddo, theme_odoo_experts, theme_paptic, theme_test_custo See also : odoo/odoo#168191 task-3573251
1 parent 67053ce commit 8a824c5

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

theme_cobalt/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
<!-- ==== Call To Action ===== -->
154154
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Cobalt s_call_to_action">
155-
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
155+
<xpath expr="//t[@t-out='cta_btn_text']" position="replace" mode="inner">
156156
START NOW
157157
</xpath>
158158
</template>

theme_graphene/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Our mission is to give customers the best experience.<br/>Extensive documentation &amp; guides, an active community,<br/>24/7 support make it a pleasure to work with us.
2020
</p>
2121
<p style="text-align: right">
22-
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_default_snippet_text"><t t-esc="cta_btn_text">Contact us</t></a>
22+
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_default_snippet_text"><t t-out="cta_btn_text">Contact us</t></a>
2323
</p>
2424
</div>
2525
</div>

theme_kiddo/views/snippets/s_call_to_action.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<h3 style="text-align: center;">2,000 parents<br/> brought their kid to our nursery.</h3>
2020
<p style="text-align: center;">Entrust us with your children and go to work with peace of mind</p>
2121
<p><br/></p>
22-
<p style="text-align: center;"><a t-att-href="cta_btn_href" class="btn btn-primary btn-lg"><t t-esc="cta_btn_text">Contact us</t></a></p>
22+
<p style="text-align: center;"><a t-att-href="cta_btn_href" class="btn btn-primary btn-lg"><t t-out="cta_btn_text">Contact us</t></a></p>
2323
</div>
2424
</xpath>
2525

theme_odoo_experts/views/snippets/s_cover.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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>
2626
<!-- Button -->
27-
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
27+
<xpath expr="//t[@t-out='cta_btn_text']" position="replace" mode="inner">
2828
Discover More
2929
</xpath>
3030
</template>

theme_odoo_experts/views/snippets/s_picture.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<!-- Add a button -->
2929
<xpath expr="//p[1]" position="after">
3030
<p style="text-align: center;">
31-
<a t-att-href="cta_btn_href" class="btn btn-primary rounded-circle btn-lg"><t t-esc="cta_btn_text">Contact Us</t></a>
31+
<a t-att-href="cta_btn_href" class="btn btn-primary rounded-circle btn-lg"><t t-out="cta_btn_text">Contact Us</t></a>
3232
</p>
3333
</xpath>
3434
<!-- Image -->

theme_paptic/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<xpath expr="//p[2]" position="replace">
4141
<p>
4242
<a href="#" class="btn btn-lg btn-primary mb-2">START NOW</a>&#160;&#160;&#160;&#160;
43-
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary mb-2"><t t-esc="cta_btn_text and cta_btn_text.upper()">SCHEDULE A DEMO</t></a>
43+
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary mb-2"><t t-out="cta_btn_text and cta_btn_text.upper()">SCHEDULE A DEMO</t></a>
4444
</p>
4545
</xpath>
4646

theme_test_custo/views/footer.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<h5 class="mb-4">Useful Links</h5>
2626
<ul class="list-unstyled">
2727
<li t-foreach="request.env['website.menu'].search([('url', '=', '/main-menu-animals'), ('website_id', '=', request.website.id)]).child_id" t-as="menu">
28-
<a t-att-href="menu.url" t-esc="menu.name"/>
28+
<a t-att-href="menu.url" t-out="menu.name"/>
2929
</li>
3030
</ul>
3131
</div>

0 commit comments

Comments
 (0)