From 2bcf0e5d4728292c064f250207f1aab3d17d5853 Mon Sep 17 00:00:00 2001 From: Risvana Cybro Date: Tue, 4 Nov 2025 10:20:24 +0530 Subject: [PATCH] Nov 04: [FIX] Bug Fixed 'event_management' --- event_management/__manifest__.py | 2 +- event_management/doc/RELEASE_NOTES.md | 5 +++ .../static/description/index.html | 30 ++++++++++++++++++ .../static/src/js/action_manager.js | 31 ++++++++++++------- 4 files changed, 55 insertions(+), 13 deletions(-) diff --git a/event_management/__manifest__.py b/event_management/__manifest__.py index 8477d5b87..7f9143181 100644 --- a/event_management/__manifest__.py +++ b/event_management/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': 'Event Management and Catering', - 'version': '18.0.1.0.0', + 'version': '18.0.1.0.1', "category": "Industries", 'summary': """Comprehensive event management with integrated catering service.""", diff --git a/event_management/doc/RELEASE_NOTES.md b/event_management/doc/RELEASE_NOTES.md index ea9e6e6f0..e1b735db0 100644 --- a/event_management/doc/RELEASE_NOTES.md +++ b/event_management/doc/RELEASE_NOTES.md @@ -5,3 +5,8 @@ ##### ADD - Initial commit for Event Management and Catering +#### 03.11.2025 +#### Version 18.0.1.0.1 +##### UPDT + +- Update the js file of xlsx report ompatible with the Odoo 18 Full Accounting Kit for Community accounting module \ No newline at end of file diff --git a/event_management/static/description/index.html b/event_management/static/description/index.html index e3db1d78c..d89da0d10 100644 --- a/event_management/static/description/index.html +++ b/event_management/static/description/index.html @@ -985,6 +985,36 @@ +
+
+

+ Latest Release 18.0.1.0.1 +

+ + Nov 3, 2025 + +
+
+
+
+
+ UPDT +
+
+
+
    +
  • + Update the js file of xlsx report compatible with the Odoo 18 Full Accounting Kit for Community accounting module +
  • + +
+
+
+
+
+
+
diff --git a/event_management/static/src/js/action_manager.js b/event_management/static/src/js/action_manager.js index 491e4bff9..760055c20 100644 --- a/event_management/static/src/js/action_manager.js +++ b/event_management/static/src/js/action_manager.js @@ -1,20 +1,27 @@ -/** @odoo-module **/ -/** Xlsx report action manager */ -import {registry} from "@web/core/registry"; -import { BlockUI } from "@web/core/ui/block_ui"; +/** @event_management/static/src/js/action_manager.js **/ +import { registry } from "@web/core/registry"; +import { BlockUI, unblockUI } from "@web/core/ui/block_ui"; import { download } from "@web/core/network/download"; -/**XLSX HandlerThis handler is responsible for generating XLSX reports. -It sends a request to the server to generate the report in XLSX format and -downloads the generated file.@param {Object} action - The action object -containing the report details.@returns {Promise} - A promise that resolves -when the report generation is complete.*/ -registry.category("ir.actions.report handlers").add("xlsx", async (action) => { + +const reportHandlers = registry.category("ir.actions.report handlers"); + +if (reportHandlers.contains("xlsx")) { + reportHandlers.remove("xlsx"); +} +reportHandlers.add("xlsx", async (action) => { if (action.report_type === 'xlsx') { BlockUI; await download({ url: '/event_xlsx_reports', data: action.data, complete: () => unblockUI, - error: (error) => self.call('crash_manager', 'rpc_error', error), + error: (error) => { + // Use Odoo's crash manager properly if in OWL context + const env = owl.Component.env; + if (env && env.services && env.services.crash_manager) { + env.services.crash_manager.rpc_error(error); + } + }, }); -}}); + } +}); \ No newline at end of file