Browse Source

Merge PR #335 into 12.0

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