[FIX] account_financial_report: Display the correct name of initial balance and ending balance in general ledger

TT38721
pull/920/head
Víctor Martínez 2022-09-21 17:30:30 +02:00
parent 16f54a7fdb
commit e92be50e09
3 changed files with 46 additions and 16 deletions

View File

@ -6,6 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 13.0\n" "Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-09-21 15:29+0000\n"
"PO-Revision-Date: 2022-09-21 15:29+0000\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -1340,6 +1342,11 @@ msgstr ""
msgid "Partner ending balance" msgid "Partner ending balance"
msgstr "" msgstr ""
#. module: account_financial_report
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
msgid "Partner initial balance"
msgstr ""
#. module: account_financial_report #. module: account_financial_report
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
msgid "Partners" msgid "Partners"
@ -1604,10 +1611,16 @@ msgstr ""
#. module: account_financial_report #. module: account_financial_report
#: code:addons/account_financial_report/report/general_ledger_xlsx.py:0 #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_ending_cumul
#, python-format #, python-format
msgid "Tax ending balance" msgid "Tax ending balance"
msgstr "" msgstr ""
#. module: account_financial_report
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
msgid "Tax initial balance"
msgstr ""
#. module: account_financial_report #. module: account_financial_report
#: code:addons/account_financial_report/report/general_ledger_xlsx.py:0 #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
#: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0 #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0

View File

@ -6,9 +6,9 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 12.0+e\n" "Project-Id-Version: Odoo Server 12.0+e\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-09-20 07:00+0000\n" "POT-Creation-Date: 2022-09-21 15:29+0000\n"
"PO-Revision-Date: 2022-09-21 15:40+0000\n" "PO-Revision-Date: 2022-09-21 17:30+0200\n"
"Last-Translator: Víctor Martínez <victor.martinez@tecnativa.com>\n" "Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: es\n" "Language: es\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -1370,6 +1370,11 @@ msgstr "Saldo acumulado de empresa"
msgid "Partner ending balance" msgid "Partner ending balance"
msgstr "Saldo final de empresa" msgstr "Saldo final de empresa"
#. module: account_financial_report
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
msgid "Partner initial balance"
msgstr "Saldo inicial de empresa"
#. module: account_financial_report #. module: account_financial_report
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
msgid "Partners" msgid "Partners"
@ -1636,10 +1641,16 @@ msgstr "Etiquetas de impuestos"
#. module: account_financial_report #. module: account_financial_report
#: code:addons/account_financial_report/report/general_ledger_xlsx.py:0 #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_ending_cumul
#, python-format #, python-format
msgid "Tax ending balance" msgid "Tax ending balance"
msgstr "Saldo final de impuesto" msgstr "Saldo final de impuesto"
#. module: account_financial_report
#: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
msgid "Tax initial balance"
msgstr "Saldo inicial de impuesto"
#. module: account_financial_report #. module: account_financial_report
#: code:addons/account_financial_report/report/general_ledger_xlsx.py:0 #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
#: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0 #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0

View File

@ -55,7 +55,7 @@
<t t-if="'list_grouped' in account"> <t t-if="'list_grouped' in account">
<!-- Display account partners --> <!-- Display account partners -->
<t t-foreach="account['list_grouped']" t-as="group_item"> <t t-foreach="account['list_grouped']" t-as="group_item">
<t t-set="type" t-value='"partner_type"' /> <t t-set="type" t-value='"grouped_type"' />
<div class="page_break"> <div class="page_break">
<!-- Display partner header --> <!-- Display partner header -->
<div class="act_as_caption account_title"> <div class="act_as_caption account_title">
@ -78,7 +78,7 @@
t-set="account_or_group_item_object" t-set="account_or_group_item_object"
t-value="group_item" t-value="group_item"
/> />
<t t-set="type" t-value='"partner_type"' /> <t t-set="type" t-value='"grouped_type"' />
</t> </t>
</div> </div>
</t> </t>
@ -204,7 +204,13 @@
<!--## partner--> <!--## partner-->
<div class="act_as_cell" /> <div class="act_as_cell" />
<!--## ref - label--> <!--## ref - label-->
<div class="act_as_cell amount">Initial balance</div> <div class="act_as_cell amount">
<t t-if='type == "account_type"'>Initial balance</t>
<t t-if='type == "grouped_type"'>
<t t-if="'partners' in account">Partner initial balance</t>
<t t-if="'taxes' in account">Tax initial balance</t>
</t>
</div>
<t t-if="show_cost_center"> <t t-if="show_cost_center">
<!--## cost_center--> <!--## cost_center-->
<div class="act_as_cell" /> <div class="act_as_cell" />
@ -231,7 +237,7 @@
/> />
</span> </span>
</t> </t>
<t t-if="type == 'partner_type'"> <t t-if="type == 'grouped_type'">
<t <t
t-set="domain" t-set="domain"
t-value="[('account_id', '=', account['id']), t-value="[('account_id', '=', account['id']),
@ -263,7 +269,7 @@
/> />
</span> </span>
</t> </t>
<t t-if="type == 'partner_type'"> <t t-if="type == 'grouped_type'">
<t <t
t-set="domain" t-set="domain"
t-value="[('account_id', '=', account['id']), t-value="[('account_id', '=', account['id']),
@ -294,7 +300,7 @@
/> />
</span> </span>
</t> </t>
<t t-if="type == 'partner_type'"> <t t-if="type == 'grouped_type'">
<t <t
t-set="domain" t-set="domain"
t-value="[('account_id', '=', account['id']), t-value="[('account_id', '=', account['id']),
@ -328,7 +334,7 @@
/> />
</span> </span>
</t> </t>
<t t-if="type == 'partner_type'"> <t t-if="type == 'grouped_type'">
<t <t
t-set="domain" t-set="domain"
t-value="[('account_id', '=', account['id']), t-value="[('account_id', '=', account['id']),
@ -625,12 +631,12 @@
style="width: 16.9%;" style="width: 16.9%;"
>Ending balance</div> >Ending balance</div>
</t> </t>
<t t-if='type == "partner_type"'> <t t-if='type == "grouped_type"'>
<div class="act_as_cell first_column" style="width: 41.32%;" /> <div class="act_as_cell first_column" style="width: 41.32%;" />
<div <div class="act_as_cell right" style="width: 16.9%;">
class="act_as_cell right" <t t-if="'partners' in account">Partner ending balance</t>
style="width: 16.9%;" <t t-if="'taxes' in account">Tax ending balance</t>
>Partner ending balance</div> </div>
</t> </t>
<t t-if="show_cost_center"> <t t-if="show_cost_center">
<!--## cost_center--> <!--## cost_center-->
@ -687,7 +693,7 @@
</a> </a>
</span> </span>
</t> </t>
<t t-if="type == 'partner_type'"> <t t-if="type == 'grouped_type'">
<t <t
t-set="domain" t-set="domain"
t-value="[('account_id', '=', account['id']), t-value="[('account_id', '=', account['id']),