[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 generatedpull/980/head
parent
a541f9cf64
commit
ce6af2742c
|
@ -154,7 +154,7 @@ class GeneralLedgerXslx(models.AbstractModel):
|
|||
# For each account
|
||||
for account in general_ledger:
|
||||
# Write account title
|
||||
total_bal_curr = account["init_bal"]["bal_curr"]
|
||||
total_bal_curr = account["init_bal"].get("bal_curr", 0)
|
||||
self.write_array_title(
|
||||
account["code"] + " - " + accounts_data[account["id"]]["name"],
|
||||
report_data,
|
||||
|
|
|
@ -371,7 +371,7 @@
|
|||
<!-- Display each lines -->
|
||||
<t
|
||||
t-set="total_bal_curr"
|
||||
t-value="account_or_group_item_object['init_bal']['bal_curr'] or 0"
|
||||
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 -->
|
||||
|
|
Loading…
Reference in New Issue