Skip to content

Commit

Permalink
[REF] theme_cobalt, *: migrate from deprecated t-esc to t-out
Browse files Browse the repository at this point in the history
*: theme_graphene, theme_kiddo, theme_odoo_experts, theme_paptic,
theme_test_custo

See also : odoo/odoo#168191

task-3573251
  • Loading branch information
SergeBayet committed Oct 15, 2024
1 parent 2f2aec9 commit b6db0db
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion theme_cobalt/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@

<!-- ==== Call To Action ===== -->
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Cobalt s_call_to_action">
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
<xpath expr="//t[@t-out='cta_btn_text']" position="replace" mode="inner">
START NOW
</xpath>
</template>
Expand Down
2 changes: 1 addition & 1 deletion theme_graphene/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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.
</p>
<p>
<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>
<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>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion theme_kiddo/views/snippets/s_call_to_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<h3 style="text-align: center;">2,000 parents<br/> brought their kid to our nursery.</h3>
<p style="text-align: center;">Entrust us with your children and go to work with peace of mind</p>
<p><br/></p>
<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>
<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>
</div>
</xpath>

Expand Down
2 changes: 1 addition & 1 deletion theme_odoo_experts/views/snippets/s_cover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Guided by expertise gained over 20 years of achieving success for clients, we practice with passion and strategic focus on the future.
</xpath>
<!-- Button -->
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
<xpath expr="//t[@t-out='cta_btn_text']" position="replace" mode="inner">
Discover More
</xpath>
</template>
Expand Down
2 changes: 1 addition & 1 deletion theme_odoo_experts/views/snippets/s_picture.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!-- Add a button -->
<xpath expr="//p[1]" position="after">
<p style="text-align: center;">
<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>
<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>
</p>
</xpath>
<!-- Image -->
Expand Down
2 changes: 1 addition & 1 deletion theme_test_custo/views/footer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<h5 class="mb-4">Useful Links</h5>
<ul class="list-unstyled">
<li t-foreach="request.env['website.menu'].search([('url', '=', '/main-menu-animals'), ('website_id', '=', request.website.id)]).child_id" t-as="menu">
<a t-att-href="menu.url" t-esc="menu.name"/>
<a t-att-href="menu.url" t-out="menu.name"/>
</li>
</ul>
</div>
Expand Down

0 comments on commit b6db0db

Please sign in to comment.