This commit is contained in:
alexandr.uritskiy 2022-03-16 01:04:03 +05:00
parent 6aa28edbd8
commit 22d7a2b462

View File

@ -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: