|
|
@ -6,6 +6,7 @@ |
|
|
|
<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> |
|
|
@ -73,28 +74,9 @@ |
|
|
|
</th> |
|
|
|
</t> |
|
|
|
</tr> |
|
|
|
<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 t-foreach="data['datas'][0]['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 t-foreach="values['asset_cash'][0]" |
|
|
|
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> |
|
|
|
<t t-if="account_value == 1"> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" |
|
|
|
style="font-weight: normal;"> |
|
|
@ -102,17 +84,17 @@ |
|
|
|
<t t-esc="datas['name']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
<!-- Assuming you want to iterate over all values to display --> |
|
|
|
<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="datas" |
|
|
|
t-key="datas_index"> |
|
|
|
<t t-if="account_name == datas['name']"> |
|
|
|
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="datas['amount']"/> |
|
|
|
<t t-esc="account['amount']"/> |
|
|
|
</span> |
|
|
|
</th> |
|
|
|
</t> |
|
|
@ -121,8 +103,6 @@ |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
<tr style="border-bottom: 1px solid gainsboro;"> |
|
|
|
<th colspan="6" style="font-weight: normal;"> |
|
|
|
<span style="margin-left: 6%;">Receivables |
|
|
@ -161,12 +141,6 @@ |
|
|
|
</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"> |
|
|
@ -174,6 +148,12 @@ |
|
|
|
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> |
|
|
@ -227,12 +207,6 @@ |
|
|
|
</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"> |
|
|
@ -240,6 +214,12 @@ |
|
|
|
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> |
|
|
@ -292,12 +272,6 @@ |
|
|
|
</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"> |
|
|
@ -305,6 +279,12 @@ |
|
|
|
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> |
|
|
@ -373,12 +353,6 @@ |
|
|
|
</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"> |
|
|
@ -386,6 +360,12 @@ |
|
|
|
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> |
|
|
@ -439,12 +419,6 @@ |
|
|
|
</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"> |
|
|
@ -452,6 +426,12 @@ |
|
|
|
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> |
|
|
@ -536,12 +516,6 @@ |
|
|
|
</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"> |
|
|
@ -549,6 +523,12 @@ |
|
|
|
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> |
|
|
@ -601,12 +581,6 @@ |
|
|
|
</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"> |
|
|
@ -614,6 +588,12 @@ |
|
|
|
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> |
|
|
@ -682,12 +662,6 @@ |
|
|
|
</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"> |
|
|
@ -695,6 +669,12 @@ |
|
|
|
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> |
|
|
@ -795,12 +775,6 @@ |
|
|
|
</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"> |
|
|
@ -808,6 +782,12 @@ |
|
|
|
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> |
|
|
@ -876,12 +856,6 @@ |
|
|
|
</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"> |
|
|
@ -889,6 +863,12 @@ |
|
|
|
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> |
|
|
|