From 450780ddec55610fccf6d552037a1ffaea0fba37 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Tue, 14 Mar 2023 18:23:02 +0530 Subject: [PATCH] Mar 14 : [FIX] Bug Fixed 'advance_cash_flow_statements' --- advance_cash_flow_statements/__manifest__.py | 2 +- advance_cash_flow_statements/wizard/account_wizard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advance_cash_flow_statements/__manifest__.py b/advance_cash_flow_statements/__manifest__.py index 96c9e675d..a8ebcabbc 100644 --- a/advance_cash_flow_statements/__manifest__.py +++ b/advance_cash_flow_statements/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Advanced Cash Flow Statements', - 'version': '15.0.1.0.0', + 'version': '15.0.1.0.1', 'summary': """Generate four levels of cash flow statement reports in PDF and Excel""", 'description': """Generate four levels of cash flow statement reports in PDF and Excel, pdf report, excel report, cashflow, odoo15""", 'author': "Cybrosys Techno Solutions", diff --git a/advance_cash_flow_statements/wizard/account_wizard.py b/advance_cash_flow_statements/wizard/account_wizard.py index c11535790..9dd60ec61 100644 --- a/advance_cash_flow_statements/wizard/account_wizard.py +++ b/advance_cash_flow_statements/wizard/account_wizard.py @@ -250,7 +250,7 @@ class AccountWizard(models.TransientModel): sheet.write(row_num + 1, col_num + 3, str(i['total_debit'] - i['total_credit']) + str(currency_symbol), amount) row_num = row_num + 1 - elif data['levels'] == 'consolidated': + elif data['levels'] == 'consolidated' and i['name']: sheet.write(row_num + 1, col_num, i['name'], txt_left) sheet.write(row_num + 1, col_num + 1, str(i['total_debit']) + str(currency_symbol), amount) sheet.write(row_num + 1, col_num + 2, str(i['total_credit']) + str(currency_symbol), amount)