Skip to content

Commit af4e50e

Browse files
Gorashkmagusiak
authored andcommitted
[IMP] base,all: remove deprecated 't-esc' ir.qweb directive
task-4461090 closes odoo#228421 Related: odoo/enterprise#95456 Related: odoo/documentation#14675 Related: odoo/upgrade#8493 Related: odoo/design-themes#1150 Related: odoo/upgrade-util#326 Signed-off-by: Raphael Collet <[email protected]>
1 parent a49fad8 commit af4e50e

File tree

155 files changed

+687
-709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+687
-709
lines changed

addons/account/data/mail_template_data.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@
257257
<li>For new invoices, please ensure a PDF or electronic invoice file is attached</li>
258258
<li>To add information to a previously sent invoice, reply to your "sent" email</li>
259259
</ul>
260-
For any other question, write to <t t-esc="company_email"/>.
260+
For any other question, write to <t t-out="company_email"/>.
261261
<br/>
262262
--
263263
<br/>
264-
<t t-esc="company_name"/>
264+
<t t-out="company_name"/>
265265
</p>
266266
</template>
267267
<record id="mail_template_einvoice_notification" model="mail.template">

addons/account_edi_ubl_cii/data/cii_22_templates.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@
8282
<t t-foreach="line_vals.get('allowance_charge_vals_list')" t-as="allowance_charge_vals">
8383
<ram:SpecifiedTradeAllowanceCharge>
8484
<ram:ChargeIndicator>
85-
<udt:Indicator t-esc="allowance_charge_vals['indicator']"/>
85+
<udt:Indicator t-out="allowance_charge_vals['indicator']"/>
8686
</ram:ChargeIndicator>
87-
<ram:ActualAmount t-esc="format_monetary(allowance_charge_vals['amount'], 2)"/>
88-
<ram:ReasonCode t-esc="allowance_charge_vals['reason_code']"/>
89-
<ram:Reason t-esc="allowance_charge_vals['reason']"/>
87+
<ram:ActualAmount t-out="format_monetary(allowance_charge_vals['amount'], 2)"/>
88+
<ram:ReasonCode t-out="allowance_charge_vals['reason_code']"/>
89+
<ram:Reason t-out="allowance_charge_vals['reason']"/>
9090
</ram:SpecifiedTradeAllowanceCharge>
9191
</t>
9292

9393
<!-- Subtotal. -->
9494
<ram:SpecifiedTradeSettlementLineMonetarySummation>
95-
<ram:LineTotalAmount t-esc="format_monetary(line_vals['line_total_amount'], 2)"/>
95+
<ram:LineTotalAmount t-out="format_monetary(line_vals['line_total_amount'], 2)"/>
9696
</ram:SpecifiedTradeSettlementLineMonetarySummation>
9797

9898
</ram:SpecifiedLineTradeSettlement>
@@ -302,12 +302,12 @@
302302
<!-- Summary. -->
303303
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
304304
<ram:LineTotalAmount
305-
t-esc="format_monetary(tax_basis_total_amount, 2)"/>
305+
t-out="format_monetary(tax_basis_total_amount, 2)"/>
306306
<ram:TaxBasisTotalAmount
307-
t-esc="format_monetary(tax_basis_total_amount, 2)"/>
307+
t-out="format_monetary(tax_basis_total_amount, 2)"/>
308308
<ram:TaxTotalAmount
309309
t-att-currencyID="currency.name"
310-
t-esc="format_monetary(tax_total_amount, 2)"/>
310+
t-out="format_monetary(tax_total_amount, 2)"/>
311311
<ram:GrandTotalAmount
312312
t-out="format_monetary(record.amount_total, 2)"/>
313313
<ram:TotalPrepaidAmount

addons/auth_signup/views/auth_signup_login_templates.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<t t-call="auth_signup.fields"/>
5555

5656
<p class="alert alert-danger" t-if="error" role="alert">
57-
<t t-esc="error"/>
57+
<t t-out="error"/>
5858
</p>
5959
<input type="hidden" name="redirect" t-att-value="redirect"/>
6060
<input type="hidden" name="token" t-att-value="token"/>
@@ -73,7 +73,7 @@
7373
<div class="oe_structure" id="oe_structure_reset_password_top"/>
7474
<div t-if="message" class="oe_login_form clearfix">
7575
<p class="alert alert-success" t-if="message" role="status">
76-
<t t-esc="message"/>
76+
<t t-out="message"/>
7777
</p>
7878
<a href="/web/login" class="btn btn-link btn-sm float-start" role="button">Back to Login</a>
7979
</div>
@@ -96,7 +96,7 @@
9696
</t>
9797

9898
<p class="alert alert-danger" t-if="error" role="alert">
99-
<t t-esc="error"/>
99+
<t t-out="error"/>
100100
</p>
101101
<input type="hidden" name="redirect" t-att-value="redirect"/>
102102
<input type="hidden" name="token" t-att-value="token"/>

addons/auth_totp/views/templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
<div class="text-center py-2 border-top">
2323
<p class="alert alert-danger" t-if="error" role="alert">
24-
<t t-esc="error"/>
24+
<t t-out="error"/>
2525
</p>
2626
<div class="mb-2 mt-2 text-muted">
2727
<input type="checkbox" name="remember" id="switch-remember" value="1"/>

addons/auth_totp_portal/views/templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
bit ridiculous
99
-->
1010
<div class="d-none" id="totp_wizard_view">
11-
<t t-esc="env.ref('auth_totp.view_totp_wizard').sudo().get_combined_arch()"/>
11+
<t t-out="env.ref('auth_totp.view_totp_wizard').sudo().get_combined_arch()"/>
1212
</div>
1313
<section>
1414
<h4>

addons/base_import_module/tests/test_cloc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<t t-name="stock_barcode.LineComponent">
1313
<div t-if="line.picking_id and line.picking_id.origin" name="origin">
1414
<i class="fa fa-fw fa-file" />
15-
<span t-esc="line.picking_id.origin" />
15+
<span t-out="line.picking_id.origin" />
1616
</div>
1717
</t>
1818
</templates>
@@ -23,7 +23,7 @@
2323
<t t-name="stock_barcode.LineComponent">
2424
<div t-if="line.picking_id and line.picking_id.origin" name="origin">
2525
<i class="fa fa-fw fa-file" />
26-
<span t-esc="line.picking_id.origin" />
26+
<span t-out="line.picking_id.origin" />
2727
</div>
2828
</t>
2929
</template>

addons/base_install_request/data/mail_templates_module_install.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<li class="mt8 col-lg-6" t-if="app.application">
99
<div>
1010
<img width="24px" height="24px" class="img-fluid" t-att-src="app.icon"/>
11-
<t t-esc="app.shortdesc"/>
11+
<t t-out="app.shortdesc"/>
1212
</div>
1313
</li>
1414
</t>

addons/calendar/views/calendar_templates.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div class="card">
1616
<div class="card-header">
17-
<h2>Calendar Invitation <small><t t-esc="event.name"/></small></h2>
17+
<h2>Calendar Invitation <small><t t-out="event.name"/></small></h2>
1818
</div>
1919
<div class="card-body">
2020
<div class="clearfix mb16" t-if="attendee.state != 'needsAction'">
@@ -30,29 +30,29 @@
3030
<table class="o_event_table table table-striped">
3131
<tr>
3232
<th>Invitation for</th>
33-
<td><t t-esc="attendee.common_name"/> (<t t-esc="attendee.email"/>)</td>
33+
<td><t t-out="attendee.common_name"/> (<t t-out="attendee.email"/>)</td>
3434
</tr>
3535
<tr>
3636
<th>Date</th>
37-
<td><t t-esc="event.display_time"/></td>
37+
<td><t t-out="event.display_time"/></td>
3838
</tr>
3939
<tr>
4040
<th>Location</th>
41-
<td><t t-esc="event.location or '-'"/></td>
41+
<td><t t-out="event.location or '-'"/></td>
4242
</tr>
4343
<tr>
4444
<th>Attendees</th>
4545
<td>
4646
<ul>
4747
<li t-foreach="event.attendee_ids" t-as="attendee" t-attf-class="o_#{attendee.state}">
48-
<t t-esc="attendee.common_name"/>
48+
<t t-out="attendee.common_name"/>
4949
</li>
5050
</ul>
5151
</td>
5252
</tr>
5353
<tr>
5454
<th>Description</th>
55-
<td><t t-esc="event.description or '-'"/></td>
55+
<td><t t-out="event.description or '-'"/></td>
5656
</tr>
5757
</table>
5858
</div>

addons/crm/data/crm_lead_merge_template.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<div t-if="lead.tag_ids" name="tag_ids" class="d-flex flex-row">
6868
Tags:
6969
<div class="ms-2 d-flex flex-row">
70-
<div t-foreach="lead.tag_ids" t-as="tag" t-esc="tag.name"
70+
<div t-foreach="lead.tag_ids" t-as="tag" t-out="tag.name"
7171
t-attf-class="badge rounded-pill o_tag o_tag_color_#{tag.color} d-inline-block"/>
7272
</div>
7373
</div>
@@ -142,13 +142,13 @@
142142
<div>
143143
The contacts below have been added as followers of this lead
144144
because they have been contacted less than 30 days ago on
145-
<span class="fw-bold" t-esc="lead.name"/>.
145+
<span class="fw-bold" t-out="lead.name"/>.
146146
</div>
147147
<ul>
148148
<li t-foreach="lead_followers" t-as="follower">
149-
<t t-esc="follower.partner_id.name"/>
149+
<t t-out="follower.partner_id.name"/>
150150
<t t-if="follower.partner_id.email">
151-
(<t t-esc="follower.partner_id.email"/>)
151+
(<t t-out="follower.partner_id.email"/>)
152152
</t>
153153
</li>
154154
</ul>
@@ -161,13 +161,13 @@
161161
<ul class="p-0">
162162
<li t-foreach="properties" t-as="property"
163163
class="d-flex flex-row align-items-center">
164-
<t t-esc="property['label']"/>:
164+
<t t-out="property['label']"/>:
165165
<div t-if="'values' in property"
166166
class="ms-2 d-flex flex-row"> <!-- Tags -->
167-
<div t-foreach="property['values']" t-as="tag" t-esc="tag['name']"
167+
<div t-foreach="property['values']" t-as="tag" t-out="tag['name']"
168168
t-attf-class="badge rounded-pill o_tag o_tag_color_#{tag.get('color', 0)} d-inline-block me-2"/>
169169
</div>
170-
<div t-else="" class="ms-2" t-esc="property['value']"/>
170+
<div t-else="" class="ms-2" t-out="property['value']"/>
171171
</li>
172172
</ul>
173173
</div>

addons/crm/views/crm_helper_templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p class="o_view_nocontent_smiling_face">
66
Create an opportunity to start playing with your pipeline.
77
</p><p>Use the <i>New</i> button, or send an email to
8-
<a t-attf-href="mailto:#{team.alias_email}"><t t-esc="team.alias_email"/></a>
8+
<a t-attf-href="mailto:#{team.alias_email}"><t t-out="team.alias_email"/></a>
99
to test the email gateway.</p>
1010
</t>
1111
<t t-else="">

0 commit comments

Comments
 (0)