Initial commit: Cybrosys Odoo packages (10 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:49:21 +02:00
commit 54ed047508
751 changed files with 13707 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/** @odoo-module **/
import { registry } from "@web/core/registry";
import framework from 'web.framework';
import session from 'web.session';
registry.category("ir.actions.report handlers")
.add("cybrysys_xlsx_handler", async function (action) {
// Passing data to the controller to print the excel file
if (action.report_type === 'cybrosys-xlsx') {
framework.blockUI();
var def = $.Deferred();
session.get_file({
url: '/xlsx_reports',
data: action.data,
success: def.resolve.bind(def),
complete: framework.unblockUI,
});
return def;
}
})