diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index 3c3226c6..c659f4ef 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -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"].get("bal_curr", 0) + total_bal_curr = 0 self.write_array_title( account["code"] + " - " + accounts_data[account["id"]]["name"], report_data, @@ -235,7 +235,7 @@ class GeneralLedgerXslx(models.AbstractModel): else: # For each partner - total_bal_curr = account["init_bal"]["bal_curr"] + total_bal_curr = 0 for group_item in account["list_grouped"]: # Write partner title self.write_array_title(group_item["name"], report_data) diff --git a/account_financial_report/report/templates/general_ledger.xml b/account_financial_report/report/templates/general_ledger.xml index 910a909b..fb8f2d31 100644 --- a/account_financial_report/report/templates/general_ledger.xml +++ b/account_financial_report/report/templates/general_ledger.xml @@ -369,10 +369,7 @@ - +