From 77f2fb50729509ad128ca0e76a0e2246e93ac4ee Mon Sep 17 00:00:00 2001 From: "luc.demeyer@noviat.com" Date: Sun, 4 Nov 2018 10:07:42 +0100 Subject: [PATCH] [10.0][FIX]fix _render for cell formats --- report_xlsx_helper/report/report_xlsx_abstract.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/report_xlsx_helper/report/report_xlsx_abstract.py b/report_xlsx_helper/report/report_xlsx_abstract.py index b93cf2a4..5b472cb4 100644 --- a/report_xlsx_helper/report/report_xlsx_abstract.py +++ b/report_xlsx_helper/report/report_xlsx_abstract.py @@ -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]