From 084eaf98d34e928e17650931e584a410ffe1b560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Fernando=20Izquierdo=20Hern=C3=A1ndez?= Date: Thu, 7 Dec 2023 10:53:46 -0600 Subject: [PATCH] fix(report.report_aeroo.abstract): Var (styles) not defined in "def get_stylesheet" Var (style) is added to the function, since when entering the if styles it fails since it just wants to give it a definition and this is incorrect. --- report_aeroo/report_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_aeroo/report_parser.py b/report_aeroo/report_parser.py index afc35240..fef63c3d 100644 --- a/report_aeroo/report_parser.py +++ b/report_aeroo/report_parser.py @@ -394,7 +394,7 @@ def get_other_template(self, model, rec_id): return template def get_stylesheet(self, report): - style_io = None + style_io = styles = None if report.styles_mode != 'default': if report.styles_mode == 'global': styles = self.env.company.stylesheet_id