From dd0f47bb6b8a398fe1a7b0922c9f27b2782ec194 Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 23 Jan 2022 03:12:46 +0000 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- README.md | 2 +- report_qweb_encrypt/__manifest__.py | 2 +- report_qweb_encrypt/models/ir_actions_report.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 409745b..3449adb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ addon | version | summary [report_xlsx_helper](report_xlsx_helper/) | 2.0.1.0.1| Report xlsx helpers [report_xlsx](report_xlsx/) | 2.0.1.0.5| Base module to create xlsx report [bi_view_editor](bi_view_editor/) | 2.0.1.0.0| Graphical BI views builder for Odoo -[report_qweb_encrypt](report_qweb_encrypt/) | 2.0.1.0.0| Allow to encrypt qweb pdfs +[report_qweb_encrypt](report_qweb_encrypt/) | 2.0.1.0.1| Allow to encrypt qweb pdfs [report_qweb_parameter](report_qweb_parameter/) | 2.0.1.0.0| Add new parameters for qweb templates in order to reduce field length and check minimal length [kpi_dashboard](kpi_dashboard/) | 2.0.1.0.0| Create Dashboards using kpis [report_py3o_fusion_server](report_py3o_fusion_server/) | 2.0.1.0.0| Let the fusion server handle format conversion. diff --git a/report_qweb_encrypt/__manifest__.py b/report_qweb_encrypt/__manifest__.py index 794afad..5cc8450 100644 --- a/report_qweb_encrypt/__manifest__.py +++ b/report_qweb_encrypt/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Report Qweb Encrypt", "summary": "Allow to encrypt qweb pdfs", - "version": "2.0.1.0.0", + "version": "2.0.1.0.1", "license": "AGPL-3", "author": "Creu Blanca,Ecosoft,Odoo Community Association (OCA)", "website": "https://gitlab.com/flectra-community/reporting-engine", diff --git a/report_qweb_encrypt/models/ir_actions_report.py b/report_qweb_encrypt/models/ir_actions_report.py index 1e52b7b..d3f8534 100644 --- a/report_qweb_encrypt/models/ir_actions_report.py +++ b/report_qweb_encrypt/models/ir_actions_report.py @@ -34,6 +34,8 @@ class IrActionsReport(models.Model): document, ttype = super(IrActionsReport, self)._render_qweb_pdf( res_ids=res_ids, data=data ) + if isinstance(res_ids, int): + res_ids = [res_ids] password = self._get_pdf_password(res_ids[:1]) document = self._encrypt_pdf(document, password) return document, ttype