From 24d857cff748461912994799e46347549b193dca Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Tue, 14 Jan 2025 13:15:29 +0100 Subject: [PATCH] pyflakes --- jasper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jasper.py b/jasper.py index decfc44..df3a36b 100644 --- a/jasper.py +++ b/jasper.py @@ -174,6 +174,8 @@ def execute(cls, ids, data): a boolean to direct print, the report name ''' + pool = Pool() + action_report, model = cls.get_action(data) cls.check_access(action_report, model, ids) @@ -184,7 +186,7 @@ def execute(cls, ids, data): # report single and len > 1, return zip file if action_report.single and len(ids) > 1: - Model = Pool().get(model) + Model = pool.get(model) records = Model.browse(ids) rec_names = dict((x.id, x) for x in records) suffix = '-'.join(r.rec_name for r in records[:5])