diff --git a/report_py3o/__manifest__.py b/report_py3o/__manifest__.py index 5f35b7846..ddcbfc59b 100644 --- a/report_py3o/__manifest__.py +++ b/report_py3o/__manifest__.py @@ -10,7 +10,10 @@ "author": "XCG Consulting," "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", "depends": ["web"], - "external_dependencies": {"python": ["py3o.template", "py3o.formats", "PyPDF2"]}, + "external_dependencies": { + "python": ["py3o.template", "py3o.formats", "PyPDF2"], + "deb": ["libreoffice"], + }, "data": [ "security/ir.model.access.csv", "views/menu.xml", diff --git a/report_qweb_signer/__manifest__.py b/report_qweb_signer/__manifest__.py index d5896497d..6404bc7da 100644 --- a/report_qweb_signer/__manifest__.py +++ b/report_qweb_signer/__manifest__.py @@ -13,7 +13,10 @@ "license": "AGPL-3", "installable": True, "depends": ["web_editor"], - "external_dependencies": {"python": ["endesive", "cryptography"]}, + "external_dependencies": { + "python": ["endesive", "cryptography"], + "deb": ["default-jre-headless"], + }, "data": [ "data/defaults.xml", "security/ir.model.access.csv", diff --git a/report_qweb_signer/models/ir_actions_report.py b/report_qweb_signer/models/ir_actions_report.py index 1f87d0a70..06a42ed50 100644 --- a/report_qweb_signer/models/ir_actions_report.py +++ b/report_qweb_signer/models/ir_actions_report.py @@ -42,7 +42,7 @@ class IrActionsReport(models.Model): if res_ids: obj = self.env[self.model].browse(res_ids[0]) if "company_id" in obj: - company_id = obj.company_id.id + company_id = obj.company_id.id or company_id certificates = self.env["report.certificate"].search( [ ("company_id", "=", company_id),