mirror of
https://github.com/bringout/cybrosys.git
synced 2026-04-18 12:52:01 +02:00
Initial commit: Cybrosys Odoo packages (10 packages)
This commit is contained in:
commit
54ed047508
751 changed files with 13707 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue