[15.0][FIX] account_financial_report: generate ledger document
In general ledger report shows an error due to the fact that the ball_curr varible does not generated
This commit is contained in:
@@ -145,7 +145,7 @@ class GeneralLedgerXslx(models.AbstractModel):
|
|||||||
# For each account
|
# For each account
|
||||||
for account in general_ledger:
|
for account in general_ledger:
|
||||||
# Write account title
|
# Write account title
|
||||||
total_bal_curr = 0
|
total_bal_curr = account["init_bal"].get("bal_curr", 0)
|
||||||
self.write_array_title(
|
self.write_array_title(
|
||||||
account["code"] + " - " + accounts_data[account["id"]]["name"],
|
account["code"] + " - " + accounts_data[account["id"]]["name"],
|
||||||
report_data,
|
report_data,
|
||||||
|
|||||||
@@ -367,7 +367,10 @@
|
|||||||
</t>
|
</t>
|
||||||
</div>
|
</div>
|
||||||
<!-- Display each lines -->
|
<!-- Display each lines -->
|
||||||
<t t-set="total_bal_curr" t-value="0" />
|
<t
|
||||||
|
t-set="total_bal_curr"
|
||||||
|
t-value="account_or_group_item_object['init_bal'].get('bal_curr', 0)"
|
||||||
|
/>
|
||||||
<t t-foreach="account_or_group_item_object['move_lines']" t-as="line">
|
<t t-foreach="account_or_group_item_object['move_lines']" t-as="line">
|
||||||
<!-- # lines or centralized lines -->
|
<!-- # lines or centralized lines -->
|
||||||
<div class="act_as_row lines">
|
<div class="act_as_row lines">
|
||||||
|
|||||||
Reference in New Issue
Block a user