Merge PR #616 into 14.0

Signed-off-by etobella
This commit is contained in:
OCA-git-bot
2022-04-21 12:23:53 +00:00
3 changed files with 9 additions and 3 deletions

View File

@@ -10,7 +10,10 @@
"author": "XCG Consulting," "ACSONE SA/NV," "Odoo Community Association (OCA)", "author": "XCG Consulting," "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/reporting-engine", "website": "https://github.com/OCA/reporting-engine",
"depends": ["web"], "depends": ["web"],
"external_dependencies": {"python": ["py3o.template", "py3o.formats", "PyPDF2"]}, "external_dependencies": {
"python": ["py3o.template", "py3o.formats", "PyPDF2"],
"deb": ["libreoffice"],
},
"data": [ "data": [
"security/ir.model.access.csv", "security/ir.model.access.csv",
"views/menu.xml", "views/menu.xml",

View File

@@ -13,7 +13,10 @@
"license": "AGPL-3", "license": "AGPL-3",
"installable": True, "installable": True,
"depends": ["web_editor"], "depends": ["web_editor"],
"external_dependencies": {"python": ["endesive", "cryptography"]}, "external_dependencies": {
"python": ["endesive", "cryptography"],
"deb": ["default-jre-headless"],
},
"data": [ "data": [
"data/defaults.xml", "data/defaults.xml",
"security/ir.model.access.csv", "security/ir.model.access.csv",

View File

@@ -42,7 +42,7 @@ class IrActionsReport(models.Model):
if res_ids: if res_ids:
obj = self.env[self.model].browse(res_ids[0]) obj = self.env[self.model].browse(res_ids[0])
if "company_id" in obj: 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( certificates = self.env["report.certificate"].search(
[ [
("company_id", "=", company_id), ("company_id", "=", company_id),