Browse Source

[11.0][FIX] Report xlsx res_partner

pull/322/head
Jaime Arroyo 5 years ago
parent
commit
734fb70bc7
  1. 6
      report_xlsx/report/report_partner_xlsx.py

6
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)
Loading…
Cancel
Save