diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index c954071b332..066eb690ebf 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -347,7 +347,7 @@ def _generate_report_content(self, workbook, report, data, report_data): "final_balance": account["fin_bal"]["balance"], } ) - if foreign_currency and account["fin_bal_currency_id"]: + if foreign_currency and account.get("fin_bal_currency_id", False): account.update( { "final_bal_curr": total_bal_curr, diff --git a/account_financial_report/report/templates/general_ledger.xml b/account_financial_report/report/templates/general_ledger.xml index e2f110a218f..95a7020a167 100644 --- a/account_financial_report/report/templates/general_ledger.xml +++ b/account_financial_report/report/templates/general_ledger.xml @@ -313,10 +313,7 @@ - +
- - + +