Browse Source

Merge PR #322 into 11.0

Signed-off-by pedrobaeza
pull/334/head
OCA-git-bot 5 years ago
parent
commit
f0a76ef262
  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