From bb166386a2cbb4cd0c11c1edec70486645bdcd74 Mon Sep 17 00:00:00 2001 From: Jaime Arroyo Date: Tue, 10 Sep 2019 09:47:14 +0200 Subject: [PATCH] [12.0][FIX] Report xlsx res_partner --- report_xlsx/report/report_partner_xlsx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report_xlsx/report/report_partner_xlsx.py b/report_xlsx/report/report_partner_xlsx.py index e4fe715a..f553d1e6 100644 --- a/report_xlsx/report/report_partner_xlsx.py +++ b/report_xlsx/report/report_partner_xlsx.py @@ -9,7 +9,7 @@ class PartnerXlsx(models.AbstractModel): _inherit = 'report.report_xlsx.abstract' def generate_xlsx_report(self, workbook, data, partners): - for obj in partners: - sheet = workbook.add_worksheet('Report') + sheet = workbook.add_worksheet('Report') + for i, obj in enumerate(partners): bold = workbook.add_format({'bold': True}) - sheet.write(0, 0, obj.name, bold) + sheet.write(i, 0, obj.name, bold)