From c7515b94d7dfcf644bf5650b711fac47c6ffe381 Mon Sep 17 00:00:00 2001 From: Risvana Cybro Date: Tue, 30 Dec 2025 14:23:05 +0530 Subject: [PATCH] :Dec 30 [FIX] Bug Fixed 'advance_cash_flow_statements' --- advance_cash_flow_statements/__manifest__.py | 2 +- .../doc/RELEASE_NOTES.md | 5 ++++ .../static/description/index.html | 30 +++++++++++++++++++ .../static/src/js/action_manager.js | 2 +- .../wizard/account_wizard.py | 2 +- 5 files changed, 38 insertions(+), 3 deletions(-) diff --git a/advance_cash_flow_statements/__manifest__.py b/advance_cash_flow_statements/__manifest__.py index bf48e3581..f7836f322 100644 --- a/advance_cash_flow_statements/__manifest__.py +++ b/advance_cash_flow_statements/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': 'Advanced Cash Flow Statements', - 'version': '18.0.1.0.0', + 'version': '18.0.1.0.1', 'summary': """Generate four levels of cash flow statement reports""", 'description': """Generate four hierarchical levels of cash flow statements and provide options to print reports in both PDF and XLSX diff --git a/advance_cash_flow_statements/doc/RELEASE_NOTES.md b/advance_cash_flow_statements/doc/RELEASE_NOTES.md index cac41c0f8..ff76a0d9b 100644 --- a/advance_cash_flow_statements/doc/RELEASE_NOTES.md +++ b/advance_cash_flow_statements/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 18.0.1.0.0 ##### ADD - Initial commit for Advanced Cash Flow Statements + +#### 29.12.2025 +#### Version 18.0.1.0.1 +##### FIX +- Fixed an error in XLSX report generation when the report_xlsx module is installed. \ No newline at end of file diff --git a/advance_cash_flow_statements/static/description/index.html b/advance_cash_flow_statements/static/description/index.html index 2c0ab0bd6..422cefd9e 100644 --- a/advance_cash_flow_statements/static/description/index.html +++ b/advance_cash_flow_statements/static/description/index.html @@ -815,6 +815,36 @@ +
+
+

+ Latest Release 18.0.1.0.1 +

+ + 29 Dec, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Fixed an error in XLSX report generation when the report_xlsx module is installed. +
  • + +
+
+
+
+
+
+
diff --git a/advance_cash_flow_statements/static/src/js/action_manager.js b/advance_cash_flow_statements/static/src/js/action_manager.js index 7465b1b14..4bd2e77b3 100644 --- a/advance_cash_flow_statements/static/src/js/action_manager.js +++ b/advance_cash_flow_statements/static/src/js/action_manager.js @@ -5,7 +5,7 @@ import { download } from "@web/core/network/download"; // This function is responsible for generating and downloading an XLSX report. registry.category("ir.actions.report handlers").add("xlsx", async function (action){ - if (action.report_type === 'xlsx') { + if (action.report_type === 'xlsx_advance_cashflow') { const blockUI = new BlockUI(); await download({ url: '/cash_flow_xlsx_reports', diff --git a/advance_cash_flow_statements/wizard/account_wizard.py b/advance_cash_flow_statements/wizard/account_wizard.py index 8734b4bb4..b51dd0233 100644 --- a/advance_cash_flow_statements/wizard/account_wizard.py +++ b/advance_cash_flow_statements/wizard/account_wizard.py @@ -100,7 +100,7 @@ class AccountWizard(models.TransientModel): } return { 'type': 'ir.actions.report', - 'report_type': 'xlsx', + 'report_type': 'xlsx_advance_cashflow', 'data': {'model': 'account.wizard', 'output_format': 'xlsx', 'options': json.dumps(data,