From d4642fc7b3fd5c268ba538815425fbd02403bf9d Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Tue, 19 Apr 2022 11:22:43 +0200 Subject: [PATCH 1/3] [IMP] report_py3o: Add external dependencies --- report_py3o/__manifest__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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", From 03ba6b220eec07ff6191d513eee9e3456655c1ec Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Tue, 19 Apr 2022 13:47:03 +0200 Subject: [PATCH 2/3] [IMP] report_qweb_signer: keep env company if company is not defined --- report_qweb_signer/models/ir_actions_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), From c44cbc883fad528e9b86766424ecc09e93c7eea6 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Thu, 21 Apr 2022 10:31:14 +0200 Subject: [PATCH 3/3] [IMP] report_qweb_signer: Add default-jre-headless for GH --- report_qweb_signer/__manifest__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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",