Browse Source

Nov 04: [FIX] Bug Fixed 'event_management'

pull/406/head
Risvana Cybro 2 months ago
parent
commit
2bcf0e5d47
  1. 2
      event_management/__manifest__.py
  2. 5
      event_management/doc/RELEASE_NOTES.md
  3. 30
      event_management/static/description/index.html
  4. 31
      event_management/static/src/js/action_manager.js

2
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.""",

5
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

30
event_management/static/description/index.html

@ -985,6 +985,36 @@
</div>
</div>
</div>
<div class="row pt-5 m-0">
<div class="col-md-3">
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;">
Latest Release 18.0.1.0.1
</h4>
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;">
Nov 3, 2025
</span>
</div>
<div class="col-md-8">
<div style="padding:0 0 40px">
<div style="margin:0 0 10px">
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px">
UPDT
</div>
</div>
<div class="d-flex m-0"
style="color:#7A7979;">
<ul class="pl-3 mb-0">
<li>
Update the js file of xlsx report compatible with the Odoo 18 Full Accounting Kit for Community accounting module
</li>
</ul>
</div>
</div>
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3">
</div>
</div>
</div>
</div>
</div>
</div>

31
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);
}
},
});
}});
}
});
Loading…
Cancel
Save