Skip to content

Commit

Permalink
pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
raimonesteve committed Jan 14, 2025
1 parent d1683a4 commit 24d857c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jasper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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])
Expand Down

0 comments on commit 24d857c

Please sign in to comment.