Browse Source

[10.0][FIX]fix _render for cell formats

pull/284/head
luc.demeyer@noviat.com 6 years ago
committed by Luc De Meyer
parent
commit
77f2fb5072
  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