Replace t-esc with t-out

This commit is contained in:
Danny W. Adair
2023-12-18 10:18:21 +13:00
committed by Miquel Raïch
parent bf2d7c6dd1
commit 2e0cda6adc
4 changed files with 52 additions and 52 deletions

View File

@@ -7,9 +7,9 @@
<span t-if="is_detailed">Detailed </span> <span t-if="is_detailed">Detailed </span>
<span <span
t-if="account_type == 'liability_payable'" t-if="account_type == 'liability_payable'"
>Supplier </span>Statement between <span t-esc="d['start']" /> and <span >Supplier </span>Statement between <span t-out="d['start']" /> and <span
t-esc="d['end']" t-out="d['end']"
/> in <span t-esc="display_currency.name" /> /> in <span t-out="display_currency.name" />
</p> </p>
<table class="table table-condensed table-statement"> <table class="table table-condensed table-statement">
<thead> <thead>
@@ -26,7 +26,7 @@
<tr> <tr>
<td /> <td />
<td> <td>
<span t-esc="d['prior_day']" /> <span t-out="d['prior_day']" />
</td> </td>
<td t-if="is_detailed">Initial Balance</td> <td t-if="is_detailed">Initial Balance</td>
<td t-else="">Balance Forward</td> <td t-else="">Balance Forward</td>
@@ -34,7 +34,7 @@
<td /> <td />
<td class="amount"> <td class="amount">
<span <span
t-esc="currency['balance_forward']" t-out="currency['balance_forward']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
@@ -48,50 +48,50 @@
<span <span
t-if="line['reconciled_line']" t-if="line['reconciled_line']"
style="padding-left: 11px;" style="padding-left: 11px;"
/><span t-esc="line['move_id']" /> /><span t-out="line['move_id']" />
</td> </td>
<td> <td>
<span t-esc="line['date']" /> <span t-out="line['date']" />
</td> </td>
<td> <td>
<t t-if="line['name'] != '/'"> <t t-if="line['name'] != '/'">
<t t-if="not line['ref'] and line['name']"> <t t-if="not line['ref'] and line['name']">
<span t-esc="line['name']" /> <span t-out="line['name']" />
</t> </t>
<t t-if="line['ref'] and not line['name']"> <t t-if="line['ref'] and not line['name']">
<span t-esc="line['ref']" /> <span t-out="line['ref']" />
</t> </t>
<t t-if="line['ref'] and line['name']"> <t t-if="line['ref'] and line['name']">
<t <t
t-if="line['name'] not in line['ref'] or line['name'] == line['ref']" t-if="line['name'] not in line['ref'] or line['name'] == line['ref']"
> >
<span t-esc="line['name']" /> <span t-out="line['name']" />
</t> </t>
<t t-if="line['ref'] not in line['name']"> <t t-if="line['ref'] not in line['name']">
<span t-esc="line['ref']" /> <span t-out="line['ref']" />
</t> </t>
</t> </t>
</t> </t>
<t t-if="line['name'] == '/'"> <t t-if="line['name'] == '/'">
<span t-esc="line['ref']" /> <span t-out="line['ref']" />
</t> </t>
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="line['amount']" t-out="line['amount']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
t-if="not line['reconciled_line']" t-if="not line['reconciled_line']"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="line['applied_amount']" t-out="line['applied_amount']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="line['open_amount']" t-out="line['open_amount']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
t-if="not line['reconciled_line']" t-if="not line['reconciled_line']"
/> />
@@ -100,14 +100,14 @@
<tr> <tr>
<td /> <td />
<td> <td>
<span t-esc="d['end']" /> <span t-out="d['end']" />
</td> </td>
<td>Ending Balance</td> <td>Ending Balance</td>
<td /> <td />
<td /> <td />
<td class="amount"> <td class="amount">
<span <span
t-esc="currency['amount_due']" t-out="currency['amount_due']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
@@ -120,11 +120,11 @@
<t t-set="o" t-value="o.with_context({'lang': lang})" /> <t t-set="o" t-value="o.with_context({'lang': lang})" />
<t t-set="address"> <t t-set="address">
<address <address
t-esc="get_inv_addr(o)" t-out="get_inv_addr(o)"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
/> />
<div t-if="o.vat" class="mt16"><t <div t-if="o.vat" class="mt16"><t
t-esc="company.country_id.vat_label or 'Tax ID'" t-out="company.country_id.vat_label or 'Tax ID'"
/>: <span t-field="o.vat" /></div> />: <span t-field="o.vat" /></div>
</t> </t>
<div class="page"> <div class="page">
@@ -132,7 +132,7 @@
<div id="informations" class="row mt32 mb32"> <div id="informations" class="row mt32 mb32">
<div class="col-3 bm-2"> <div class="col-3 bm-2">
<strong>Date:</strong> <strong>Date:</strong>
<p t-esc="d['today']" class="m-0" /> <p t-out="d['today']" class="m-0" />
</div> </div>
<div class="col-3 bm-2"> <div class="col-3 bm-2">
<strong>Partner Name:</strong> <strong>Partner Name:</strong>

View File

@@ -4,8 +4,8 @@
<odoo> <odoo>
<template id="aging_buckets"> <template id="aging_buckets">
<p> <p>
Aging Report at <span t-esc="d['end']" /> in <span Aging Report at <span t-out="d['end']" /> in <span
t-esc="display_currency.name" t-out="display_currency.name"
/>: />:
</p> </p>
<table class="table table-sm table-statement"> <table class="table table-sm table-statement">
@@ -13,7 +13,7 @@
<tr> <tr>
<t t-foreach="bucket_labels" t-as="bl"> <t t-foreach="bucket_labels" t-as="bl">
<th class="amount"> <th class="amount">
<span t-esc="bl" /> <span t-out="bl" />
</th> </th>
</t> </t>
</tr> </tr>
@@ -23,43 +23,43 @@
<tr> <tr>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('current', 0.0)" t-out="buckets.get('current', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('b_1_30', 0.0)" t-out="buckets.get('b_1_30', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('b_30_60', 0.0)" t-out="buckets.get('b_30_60', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('b_60_90', 0.0)" t-out="buckets.get('b_60_90', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('b_90_120', 0.0)" t-out="buckets.get('b_90_120', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('b_over_120', 0.0)" t-out="buckets.get('b_over_120', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="buckets.get('balance', 0.0)" t-out="buckets.get('balance', 0.0)"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>

View File

@@ -7,11 +7,11 @@
<t t-set="o" t-value="o.with_context({'lang': lang})" /> <t t-set="o" t-value="o.with_context({'lang': lang})" />
<t t-set="address"> <t t-set="address">
<address <address
t-esc="get_inv_addr(o)" t-out="get_inv_addr(o)"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
/> />
<div t-if="o.vat" class="mt16"><t <div t-if="o.vat" class="mt16"><t
t-esc="company.country_id.vat_label or 'Tax ID'" t-out="company.country_id.vat_label or 'Tax ID'"
/>: <span t-field="o.vat" /></div> />: <span t-field="o.vat" /></div>
</t> </t>
<div class="page"> <div class="page">
@@ -19,7 +19,7 @@
<div id="informations" class="row mt32 mb32"> <div id="informations" class="row mt32 mb32">
<div class="col-3 bm-2"> <div class="col-3 bm-2">
<strong>Date:</strong> <strong>Date:</strong>
<p t-esc="d['today']" class="m-0" /> <p t-out="d['today']" class="m-0" />
</div> </div>
<div class="col-3 bm-2"> <div class="col-3 bm-2">
<strong>Partner Name:</strong> <strong>Partner Name:</strong>

View File

@@ -5,9 +5,9 @@
<template id="outstanding_balance"> <template id="outstanding_balance">
<p> <p>
<span <span
t-esc="'' if account_type == 'asset_receivable' else 'Supplier '" t-out="'' if account_type == 'asset_receivable' else 'Supplier '"
/><span t-esc="title_name" /> up to <span t-esc="ending_date" /> in <span /><span t-out="title_name" /> up to <span t-out="ending_date" /> in <span
t-esc="display_currency.name" t-out="display_currency.name"
/> />
</p> </p>
<table class="table table-sm table-statement"> <table class="table table-sm table-statement">
@@ -29,52 +29,52 @@
t-att-class="'statement-blocked' if line['blocked'] else ''" t-att-class="'statement-blocked' if line['blocked'] else ''"
> >
<td> <td>
<span t-esc="line['move_id']" /> <span t-out="line['move_id']" />
</td> </td>
<td> <td>
<span t-esc="line['date']" /> <span t-out="line['date']" />
</td> </td>
<td> <td>
<span t-esc="line['date_maturity']" /> <span t-out="line['date_maturity']" />
</td> </td>
<td> <td>
<t t-if="line['name'] != '/'"> <t t-if="line['name'] != '/'">
<t t-if="not line['ref']"> <t t-if="not line['ref']">
<span t-esc="line['name']" /> <span t-out="line['name']" />
</t> </t>
<t t-if="line['ref'] and not line['name']"> <t t-if="line['ref'] and not line['name']">
<span t-esc="line['ref']" /> <span t-out="line['ref']" />
</t> </t>
<t t-if="line['ref'] and line['name']"> <t t-if="line['ref'] and line['name']">
<t <t
t-if="line['name'] not in line['ref'] or line['name'] == line['ref']" t-if="line['name'] not in line['ref'] or line['name'] == line['ref']"
> >
<span t-esc="line['name']" /> <span t-out="line['name']" />
</t> </t>
<t t-if="line['ref'] not in line['name']"> <t t-if="line['ref'] not in line['name']">
<span t-esc="line['ref']" /> <span t-out="line['ref']" />
</t> </t>
</t> </t>
</t> </t>
<t t-if="line['name'] == '/'"> <t t-if="line['name'] == '/'">
<span t-esc="line['ref']" /> <span t-out="line['ref']" />
</t> </t>
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="line['amount']" t-out="line['amount']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="line['open_amount']" t-out="line['open_amount']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
<td class="amount"> <td class="amount">
<span <span
t-esc="line['balance']" t-out="line['balance']"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
@@ -82,7 +82,7 @@
<tr> <tr>
<td /> <td />
<td> <td>
<span t-esc="ending_date" /> <span t-out="ending_date" />
</td> </td>
<td> <td>
Ending Balance Ending Balance
@@ -92,7 +92,7 @@
<td /> <td />
<td class="amount"> <td class="amount">
<span <span
t-esc="ending_amount" t-out="ending_amount"
t-options="{'widget': 'monetary', 'display_currency': display_currency}" t-options="{'widget': 'monetary', 'display_currency': display_currency}"
/> />
</td> </td>
@@ -105,11 +105,11 @@
<t t-set="o" t-value="o.with_context({'lang': lang})" /> <t t-set="o" t-value="o.with_context({'lang': lang})" />
<t t-set="address"> <t t-set="address">
<address <address
t-esc="get_inv_addr(o)" t-out="get_inv_addr(o)"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
/> />
<div t-if="o.vat" class="mt16"><t <div t-if="o.vat" class="mt16"><t
t-esc="company.country_id.vat_label or 'Tax ID'" t-out="company.country_id.vat_label or 'Tax ID'"
/>: <span t-field="o.vat" /></div> />: <span t-field="o.vat" /></div>
</t> </t>
<div class="page"> <div class="page">
@@ -118,7 +118,7 @@
<div id="informations" class="row mt32 mb32"> <div id="informations" class="row mt32 mb32">
<div class="col-3 bm-2"> <div class="col-3 bm-2">
<strong>Date:</strong> <strong>Date:</strong>
<p t-esc="d['today']" class="m-0" /> <p t-out="d['today']" class="m-0" />
</div> </div>
<div class="col-3 bm-2"> <div class="col-3 bm-2">
<strong>Partner Name:</strong> <strong>Partner Name:</strong>