This commit allows to download a spreadsheet with active filters without any crash. Commit https://github.com/odoo/odoo/commit/509bda2202df9f0f582fd020d96e8e1310b9abc7 was a first attempt to fix the issue. But the commit was wrong because an empty sheet for excel is not the same as an empty regular sheet. The `charts` property is missing and the excel would crash when trying to read it. Task 3102330 closes odoo/odoo#108603 X-original-commit: 0db14f258c31366ab53728735b4d31b4576c5269 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>