|
|
@ -6,7 +6,6 @@ |
|
|
|
<template id="dynamic_accounts_report.balance_sheet"> |
|
|
|
<t t-call="web.html_container"> |
|
|
|
<t t-call="web.external_layout"> |
|
|
|
|
|
|
|
<t t-set="data_report_dpi" t-value="110"/> |
|
|
|
<div class="page"> |
|
|
|
<h3> |
|
|
@ -74,33 +73,54 @@ |
|
|
|
</th> |
|
|
|
</t> |
|
|
|
</tr> |
|
|
|
<t t-foreach="data['datas'][0]['asset_cash'][0]" |
|
|
|
t-as="datas" t-key="datas_index"> |
|
|
|
<t t-if="datas['amount'] != '0.00'"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<!-- Assuming you want to iterate over all values to display --> |
|
|
|
<t t-foreach="data['datas']" t-as="value" |
|
|
|
t-key="value_index"> |
|
|
|
<t t-if="value_index == 0"> |
|
|
|
<t t-foreach="value['asset_cash'][0]" |
|
|
|
t-as="datas" t-key="datas_index"> |
|
|
|
<t t-set="account_name" |
|
|
|
t-value="datas['name']"/> |
|
|
|
<t t-set="account_value" t-value="0"/> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" t-key="values_index"> |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
|
<t t-foreach="values['asset_cash'][0]" |
|
|
|
t-as="account" |
|
|
|
t-key="account_index"> |
|
|
|
<t t-if="account['name'] == datas['name']"> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
|
<t t-esc="account['amount']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
t-as="datas" t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<t t-if="datas['amount'] != '0.00'"> |
|
|
|
<t t-set="account_value" |
|
|
|
t-value="1"/> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</tr> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
|
<t t-foreach="values['asset_cash'][0]" |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
|
<t t-esc="datas['amount']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
@ -141,6 +161,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -148,12 +174,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -207,6 +227,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -214,12 +240,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -272,6 +292,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -279,12 +305,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -353,6 +373,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -360,12 +386,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -419,6 +439,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -426,12 +452,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -516,6 +536,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -523,12 +549,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -581,6 +601,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -588,12 +614,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -662,6 +682,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -669,12 +695,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -775,6 +795,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -782,12 +808,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
@ -856,6 +876,12 @@ |
|
|
|
</t> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<t t-foreach="data['datas']" |
|
|
|
t-as="values" |
|
|
|
t-key="values_index"> |
|
|
@ -863,12 +889,6 @@ |
|
|
|
t-as="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 8%;"> |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<th class="text-end" |
|
|
|
style="font-weight: normal;"> |
|
|
|
<span> |
|
|
|