From 22d7a2b4624b9b626a307ea460d46f4b554f354c Mon Sep 17 00:00:00 2001 From: "alexandr.uritskiy" Date: Wed, 16 Mar 2022 01:04:03 +0500 Subject: [PATCH] format --- models/ir_actions_report.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/models/ir_actions_report.py b/models/ir_actions_report.py index 8a8c5e2..5179528 100644 --- a/models/ir_actions_report.py +++ b/models/ir_actions_report.py @@ -19,7 +19,7 @@ try: from odoo.addons.gotenberg.service.utils import ( get_auth, # noqa convert_pdf_from_office_url, # noqa - check_gotenberg_installed, # noqa + check_gotenberg_installed, # noqa ) gotenberg_imported = True @@ -125,7 +125,9 @@ class IrActionsReport(models.Model): docx_content = self._render_docx(res_ids, data=data) pdf_content = ( - self._get_pdf_from_office(docx_content) if check_gotenberg_installed() else None + self._get_pdf_from_office(docx_content) + if check_gotenberg_installed() + else None ) if not pdf_content: