[10.0][FIX]fix _render for cell formats

pull/361/head
luc.demeyer@noviat.com 2018-11-04 10:07:42 +01:00 committed by kongrattapong
parent 08aee1f145
commit 807c018e31
1 changed files with 2 additions and 0 deletions

View File

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