[FIX] account_financial_report: Export to XLSX after report preview

Fix ReferenceError: _ is not defined when printing report to xlsx after preview
This commit is contained in:
Carolina Fernandez
2024-08-12 10:25:51 -07:00
committed by chaule97
parent 3ca5cefa87
commit 5bb0106541

View File

@@ -31,7 +31,7 @@ patch(ReportAction.prototype, {
* @returns {String} * @returns {String}
*/ */
_get_xlsx_name(str) { _get_xlsx_name(str) {
if (!_.isString(str)) { if (typeof str !== "string") {
return str; return str;
} }
const parts = str.split("."); const parts = str.split(".");