|
|
@ -17,36 +17,54 @@ |
|
|
|
</div> |
|
|
|
<div class="col-4"> |
|
|
|
<p> |
|
|
|
<strong>Date from :</strong> <span t-esc="data['date_from']"/><br/> |
|
|
|
<strong>Date to :</strong> <span t-esc="data['date_to']"/> |
|
|
|
<strong>Date from :</strong> |
|
|
|
<span t-esc="data['date_from']"/> |
|
|
|
<br/> |
|
|
|
<strong>Date to :</strong> |
|
|
|
<span t-esc="data['date_to']"/> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<table class="table table-sm table-reports"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th><strong>Name</strong></th> |
|
|
|
<th class="text-right" t-if="data['debit_credit']"><strong>Debit</strong></th> |
|
|
|
<th class="text-right" t-if="data['debit_credit']"><strong>Credit</strong></th> |
|
|
|
<th class="text-right"><strong>Balance</strong></th> |
|
|
|
<th class="text-right" t-if="data['enable_filter']"><strong t-esc="data['label_filter']"/></th> |
|
|
|
<th> |
|
|
|
<strong>Name</strong> |
|
|
|
</th> |
|
|
|
<th class="text-right" t-if="data['debit_credit']"> |
|
|
|
<strong>Debit</strong> |
|
|
|
</th> |
|
|
|
<th class="text-right" t-if="data['debit_credit']"> |
|
|
|
<strong>Credit</strong> |
|
|
|
</th> |
|
|
|
<th class="text-right"> |
|
|
|
<strong>Balance</strong> |
|
|
|
</th> |
|
|
|
<th class="text-right" t-if="data['enable_filter']"> |
|
|
|
<strong t-esc="data['label_filter']"/> |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr t-foreach="get_account_lines" t-as="a"> |
|
|
|
<t t-if="a['level'] != 0"> |
|
|
|
<t t-if="a.get('level') > 3"><t t-set="style" t-value="'font-weight: normal;'"/></t> |
|
|
|
<t t-if="not a.get('level') > 3"><t t-set="style" t-value="'font-weight: bold;'"/></t> |
|
|
|
<t t-if="a.get('level') > 3"> |
|
|
|
<t t-set="style" t-value="'font-weight: normal;'"/> |
|
|
|
</t> |
|
|
|
<t t-if="not a.get('level') > 3"> |
|
|
|
<t t-set="style" t-value="'font-weight: bold;'"/> |
|
|
|
</t> |
|
|
|
<td> |
|
|
|
<span style="color: white;" t-esc="'..' * a.get('level', 0)"/> |
|
|
|
<span t-att-style="style" t-esc="a.get('name')"/> |
|
|
|
</td> |
|
|
|
<td class="text-right" style="white-space: text-nowrap;"> |
|
|
|
<td t-if="data['debit_credit']" class="text-right" style="white-space: text-nowrap;"> |
|
|
|
<span t-att-style="style" t-esc="a.get('debit')" t-if="data['debit_credit']" |
|
|
|
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/> |
|
|
|
</td> |
|
|
|
<td class="text-right" style="white-space: text-nowrap;"> |
|
|
|
<span t-att-style="style" t-esc="a.get('credit')" t-if="data['debit_credit']" |
|
|
|
<td t-if="data['debit_credit']" class="text-right" style="white-space: text-nowrap;"> |
|
|
|
<span t-att-style="style" t-esc="a.get('credit')" |
|
|
|
t-if="data['debit_credit']" |
|
|
|
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/> |
|
|
|
</td> |
|
|
|
<td class="text-right" style="white-space: text-nowrap;"> |
|
|
@ -54,7 +72,8 @@ |
|
|
|
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/> |
|
|
|
</td> |
|
|
|
<td class="text-right"> |
|
|
|
<span t-att-style="style" t-esc="a.get('balance_cmp')" t-if="data['enable_filter']" |
|
|
|
<span t-att-style="style" t-esc="a.get('balance_cmp')" |
|
|
|
t-if="data['enable_filter']" |
|
|
|
t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/> |
|
|
|
</td> |
|
|
|
</t> |
|
|
|