Browse Source

[10.0][FIX]fix _render for cell formats

14.0
luc.demeyer@noviat.com 6 years ago
committed by Saran440
parent
commit
9d1609aede
  1. 2
      report_xlsx_helper/report/report_xlsx_abstract.py

2
report_xlsx_helper/report/report_xlsx_abstract.py

@ -519,6 +519,8 @@ class ReportXlsxAbstract(models.AbstractModel):
args_pos = [row_pos, pos] args_pos = [row_pos, pos]
args_data = [cell_value] args_data = [cell_value]
if cell_format: if cell_format:
if isinstance(cell_format, CodeType):
cell_format = self._eval(cell_format, render_space)
args_data.append(cell_format) args_data.append(cell_format)
if colspan > 1: if colspan > 1:
args_pos += [row_pos, pos + colspan - 1] args_pos += [row_pos, pos + colspan - 1]

Loading…
Cancel
Save