Merge pull request #2176 from expsa/manar_dev_base_21_1

UPDATE report_pdf_options
This commit is contained in:
Manar416 2025-01-21 13:42:08 +02:00 committed by GitHub
commit 869d0ae162
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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') {
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 " +
action.report_type, action);
return Promise.reject();