UPDATE report_pdf_options

This commit is contained in:
manar 2025-01-21 13:41:18 +02:00
parent 9b91d3eae7
commit 6904c44d98
1 changed files with 4 additions and 1 deletions

View File

@ -95,7 +95,10 @@ odoo.define('pdf_report_options.report', function(require) {
}); });
} else if (action.report_type === 'qweb-text') { } else if (action.report_type === 'qweb-text') {
return self._triggerDownload(action, options, 'text'); return self._triggerDownload(action, options, 'text');
} else { } else if (action.report_type === 'xlsx') {
return self._triggerDownload(action, options, 'xlsx');
}
else {
console.error("The ActionManager can't handle reports of type " + console.error("The ActionManager can't handle reports of type " +
action.report_type, action); action.report_type, action);
return Promise.reject(); return Promise.reject();