Browse Source

[FIX] mis_builder: xlsx: fix header display issue with simple kpis

pull/189/head
Stéphane Bidoul 9 years ago
parent
commit
c8a6fe42fd
  1. 6
      mis_builder/report/mis_report_instance_xlsx.py

6
mis_builder/report/mis_report_instance_xlsx.py

@ -77,10 +77,16 @@ class MisBuilderXslx(ReportXlsx):
if col.comment:
label += '\n' + col.comment
sheet.set_row(row_pos, ROW_HEIGHT * 2)
if col.colspan > 1:
sheet.merge_range(
row_pos, col_pos, row_pos,
col_pos + col.colspan-1,
label, header_format)
else:
sheet.write(row_pos, col_pos, label, header_format)
col_width[col_pos] = max(col_width[col_pos],
len(col.description or ''),
len(col.comment or ''))
col_pos += col.colspan
row_pos += 1

Loading…
Cancel
Save