Merge PR #1090 into 16.0

Signed-off-by pedrobaeza
pull/1094/head
OCA-git-bot 2024-01-03 18:56:49 +00:00
commit bbee28b2e3
2 changed files with 5 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class GeneralLedgerXslx(models.AbstractModel):
# For each account
for account in general_ledger:
# Write account title
total_bal_curr = 0
total_bal_curr = account["init_bal"].get("bal_curr", 0)
self.write_array_title(
account["code"] + " - " + accounts_data[account["id"]]["name"],
report_data,

View File

@ -367,7 +367,10 @@
</t>
</div>
<!-- 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">
<!-- # lines or centralized lines -->
<div class="act_as_row lines">