[FIX] account_financial_report: Replace deprecated t-raw to t-out

This commit is contained in:
David Ramia
2023-04-28 09:27:42 +02:00
committed by chaule97
parent e607fba7db
commit 2817ae074c
5 changed files with 45 additions and 45 deletions

View File

@@ -325,7 +325,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="account_or_group_item_object['init_bal']['bal_curr']" t-out="account_or_group_item_object['init_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}"
/> />
</span> </span>
@@ -338,7 +338,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="account_or_group_item_object['init_bal']['bal_curr']" t-out="account_or_group_item_object['init_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}"
/> />
</span> </span>
@@ -724,7 +724,7 @@
style="color: black;" style="color: black;"
> >
<t <t
t-raw="account_or_group_item_object['fin_bal']['bal_curr']" t-out="account_or_group_item_object['fin_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}"
/> />
</a> </a>
@@ -741,7 +741,7 @@
style="color: black;" style="color: black;"
> >
<t <t
t-raw="account_or_group_item_object['fin_bal']['bal_curr']" t-out="account_or_group_item_object['fin_bal']['bal_curr']"
t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': account['currency_id']}"
/> />
</a> </a>

View File

@@ -17,9 +17,9 @@
<t t-set="display_account_name" t-value="with_account_name" /> <t t-set="display_account_name" t-value="with_account_name" />
<t t-set="title"> <t t-set="title">
Journal Ledger - Journal Ledger -
<t t-raw="company_name" /> <t t-out="company_name" />
- -
<t t-raw="currency_name" /> <t t-out="currency_name" />
</t> </t>
<t t-set="company_name" t-value="Company_Name" /> <t t-set="company_name" t-value="Company_Name" />
<div class="page"> <div class="page">

View File

@@ -15,9 +15,9 @@
<!-- Defines global variables used by internal layout --> <!-- Defines global variables used by internal layout -->
<t t-set="title"> <t t-set="title">
Open Items - Open Items -
<t t-raw="company_name" /> <t t-out="company_name" />
- -
<t t-raw="currency_name" /> <t t-out="currency_name" />
</t> </t>
<t t-set="company_name" t-value="Company_Name" /> <t t-set="company_name" t-value="Company_Name" />
<div class="page"> <div class="page">
@@ -174,7 +174,7 @@
<div class="act_as_row lines"> <div class="act_as_row lines">
<!--## date--> <!--## date-->
<div class="act_as_cell left"> <div class="act_as_cell left">
<span t-raw="line['date'].strftime('%d/%m/%Y')" /> <span t-out="line['date'].strftime('%d/%m/%Y')" />
</div> </div>
<!--## move--> <!--## move-->
<div class="act_as_cell left"> <div class="act_as_cell left">

View File

@@ -18,9 +18,9 @@
<!-- Defines global variables used by internal layout --> <!-- Defines global variables used by internal layout -->
<t t-set="title"> <t t-set="title">
Trial Balance - Trial Balance -
<t t-raw="company_name" /> <t t-out="company_name" />
- -
<t t-raw="currency_name" /> <t t-out="currency_name" />
</t> </t>
<t t-set="company_name" t-value="Company_Name" /> <t t-set="company_name" t-value="Company_Name" />
<!-- <t t-set="res_company" t-value="company_id"/>--> <!-- <t t-set="res_company" t-value="company_id"/>-->
@@ -92,8 +92,8 @@
view-type="form" view-type="form"
> >
<t <t
t-raw="accounts_data[account_id]['code']" t-out="accounts_data[account_id]['code']"
/> - <t t-raw="accounts_data[account_id]['name']" /> /> - <t t-out="accounts_data[account_id]['name']" />
</span> </span>
</div> </div>
<div class="act_as_table data_table" style="width: 100%;"> <div class="act_as_table data_table" style="width: 100%;">
@@ -242,7 +242,7 @@
res-model="account.group" res-model="account.group"
view-type="form" view-type="form"
> >
<t t-raw="balance['code']" /> <t t-out="balance['code']" />
</span> </span>
</div> </div>
<div class="act_as_cell left" t-att-style="style"> <div class="act_as_cell left" t-att-style="style">
@@ -299,7 +299,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="balance['initial_balance']" t-out="balance['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -317,7 +317,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="total_amount[account_id][partner_id]['initial_balance']" t-out="total_amount[account_id][partner_id]['initial_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -357,7 +357,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="balance['debit']" t-out="balance['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -377,7 +377,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="total_amount[account_id][partner_id]['debit']" t-out="total_amount[account_id][partner_id]['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -417,7 +417,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="balance['credit']" t-out="balance['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -437,7 +437,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="total_amount[account_id][partner_id]['credit']" t-out="total_amount[account_id][partner_id]['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -476,7 +476,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="balance['balance']" t-out="balance['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -496,7 +496,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="total_amount[account_id][partner_id]['balance']" t-out="total_amount[account_id][partner_id]['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -531,7 +531,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="balance['ending_balance']" t-out="balance['ending_balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -582,7 +582,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </t>--> <!-- </t>-->
</div> </div>
@@ -603,7 +603,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="total_amount[account_id][partner_id]['initial_currency_balance']" t-out="total_amount[account_id][partner_id]['initial_currency_balance']"
t-options="{'widget': 'monetary', 'display_currency': total_amount[account_id]['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': total_amount[account_id]['currency_id']}"
/> />
</span> </span>
@@ -625,7 +625,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="balance['ending_currency_balance']" t-out="balance['ending_currency_balance']"
t-options="{'widget': 'monetary', 'display_currency': balance['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': balance['currency_id']}"
/> />
</span> </span>
@@ -637,7 +637,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </t>--> <!-- </t>-->
</div> </div>
@@ -658,7 +658,7 @@
res-model="account.move.line" res-model="account.move.line"
> >
<t <t
t-raw="total_amount[account_id][partner_id]['ending_currency_balance']" t-out="total_amount[account_id][partner_id]['ending_currency_balance']"
t-options="{'widget': 'monetary', 'display_currency': total_amount[account_id]['currency_id']}" t-options="{'widget': 'monetary', 'display_currency': total_amount[account_id]['currency_id']}"
/> />
</span> </span>
@@ -702,7 +702,7 @@
<!-- t-att-data-res-model="res_model"--> <!-- t-att-data-res-model="res_model"-->
<!-- class="o_account_financial_reports_web_action"--> <!-- class="o_account_financial_reports_web_action"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="account.code"/> - <t t-att-style="style" t-raw="account.name"/></a>--> <!-- <t t-att-style="style" t-out="account.code"/> - <t t-att-style="style" t-out="account.name"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- &lt;!&ndash;## Initial balance&ndash;&gt;--> <!-- &lt;!&ndash;## Initial balance&ndash;&gt;-->
@@ -715,7 +715,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- &lt;!&ndash;## Debit&ndash;&gt;--> <!-- &lt;!&ndash;## Debit&ndash;&gt;-->
@@ -730,7 +730,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- &lt;!&ndash;## Credit&ndash;&gt;--> <!-- &lt;!&ndash;## Credit&ndash;&gt;-->
@@ -745,7 +745,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- &lt;!&ndash;## Period Balance &ndash;&gt;--> <!-- &lt;!&ndash;## Period Balance &ndash;&gt;-->
@@ -760,7 +760,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- &lt;!&ndash;## Ending balance&ndash;&gt;--> <!-- &lt;!&ndash;## Ending balance&ndash;&gt;-->
@@ -772,7 +772,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style" >--> <!-- t-att-style="style" >-->
<!-- <t t-att-style="style" t-raw="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- <t t-if="foreign_currency">--> <!-- <t t-if="foreign_currency">-->
@@ -793,7 +793,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style">--> <!-- t-att-style="style">-->
<!-- <t t-att-style="style" t-raw="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="act_as_cell amount" style="width: 8.86%;">--> <!-- <div class="act_as_cell amount" style="width: 8.86%;">-->
@@ -804,7 +804,7 @@
<!-- t-att-data-res-model="'account.move.line'"--> <!-- t-att-data-res-model="'account.move.line'"-->
<!-- class="o_account_financial_reports_web_action_monetary_multi"--> <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
<!-- t-att-style="style" >--> <!-- t-att-style="style" >-->
<!-- <t t-att-style="style" t-raw="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>--> <!-- <t t-att-style="style" t-out="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- </t>--> <!-- </t>-->

View File

@@ -12,9 +12,9 @@
<template id="account_financial_report.report_vat_report_base"> <template id="account_financial_report.report_vat_report_base">
<t t-set="title"> <t t-set="title">
VAT Report - VAT Report -
<t t-raw="company_name" /> <t t-out="company_name" />
- -
<t t-raw="currency_name" /> <t t-out="currency_name" />
</t> </t>
<t t-set="company_name" t-value="company_name" /> <t t-set="company_name" t-value="company_name" />
<div class="page"> <div class="page">
@@ -55,7 +55,7 @@
t-att-res-model="res_model" t-att-res-model="res_model"
view-type="form" view-type="form"
> >
<t t-att-style="style" t-raw="tag_or_group['code']" /> <t t-att-style="style" t-out="tag_or_group['code']" />
</span> </span>
</div> </div>
<div <div
@@ -67,20 +67,20 @@
t-att-res-model="res_model" t-att-res-model="res_model"
view-type="form" view-type="form"
> >
<t t-att-style="style" t-raw="tag_or_group['name']" /> <t t-att-style="style" t-out="tag_or_group['name']" />
</span> </span>
</div> </div>
<div class="act_as_cell amount" style="width: 15%;"> <div class="act_as_cell amount" style="width: 15%;">
<t <t
t-att-style="style" t-att-style="style"
t-raw="tag_or_group['net']" t-out="tag_or_group['net']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</div> </div>
<div class="act_as_cell amount" style="width: 15%;"> <div class="act_as_cell amount" style="width: 15%;">
<t <t
t-att-style="style" t-att-style="style"
t-raw="tag_or_group['tax']" t-out="tag_or_group['tax']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</div> </div>
@@ -98,7 +98,7 @@
t-att-res-model="res_model" t-att-res-model="res_model"
view-type="form" view-type="form"
> >
<t t-att-style="style" t-raw="tax['name']" /> <t t-att-style="style" t-out="tax['name']" />
</span> </span>
</div> </div>
<div class="act_as_cell amount" style="width: 15%;"> <div class="act_as_cell amount" style="width: 15%;">
@@ -114,7 +114,7 @@
> >
<t <t
t-att-style="style" t-att-style="style"
t-raw="tax['net']" t-out="tax['net']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>
@@ -132,7 +132,7 @@
> >
<t <t
t-att-style="style" t-att-style="style"
t-raw="tax['tax']" t-out="tax['tax']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</span> </span>