The FEC report fails to generate because of an incorrect variable type. opw-1908541 closes odoo/odoo#28832