[FIX] mis_builder: xlsx: fix header display issue with simple kpis
parent
6e2d369b1d
commit
c8a6fe42fd
|
@ -77,10 +77,16 @@ class MisBuilderXslx(ReportXlsx):
|
||||||
if col.comment:
|
if col.comment:
|
||||||
label += '\n' + col.comment
|
label += '\n' + col.comment
|
||||||
sheet.set_row(row_pos, ROW_HEIGHT * 2)
|
sheet.set_row(row_pos, ROW_HEIGHT * 2)
|
||||||
|
if col.colspan > 1:
|
||||||
sheet.merge_range(
|
sheet.merge_range(
|
||||||
row_pos, col_pos, row_pos,
|
row_pos, col_pos, row_pos,
|
||||||
col_pos + col.colspan-1,
|
col_pos + col.colspan-1,
|
||||||
label, header_format)
|
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
|
col_pos += col.colspan
|
||||||
row_pos += 1
|
row_pos += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue