From 89c5accf5c01abe7de7ffe7865b89f9c0b019482 Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Sun, 19 Dec 2021 03:13:59 +0000 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- README.md | 2 +- report_xlsx/__manifest__.py | 2 +- report_xlsx/report/report_partner_xlsx.py | 4 +--- report_xlsx/static/src/js/report/action_manager_report.js | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb4864d..765e2c6 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ addon | version | summary [report_wkhtmltopdf_param](report_wkhtmltopdf_param/) | 2.0.1.0.0| Add new parameters for a paper format to be used by wkhtmltopdf command as arguments. [report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 2.0.1.0.0| Add watermarks to your QWEB PDF reports [report_xlsx_helper](report_xlsx_helper/) | 2.0.1.0.1| Report xlsx helpers -[report_xlsx](report_xlsx/) | 2.0.1.0.4| Base module to create xlsx report +[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_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 diff --git a/report_xlsx/__manifest__.py b/report_xlsx/__manifest__.py index 4fd0098..5ec6270 100644 --- a/report_xlsx/__manifest__.py +++ b/report_xlsx/__manifest__.py @@ -6,7 +6,7 @@ "author": "ACSONE SA/NV," "Creu Blanca," "Odoo Community Association (OCA)", "website": "https://gitlab.com/flectra-community/reporting-engine", "category": "Reporting", - "version": "2.0.1.0.4", + "version": "2.0.1.0.5", "development_status": "Production/Stable", "license": "AGPL-3", "external_dependencies": {"python": ["xlsxwriter", "xlrd"]}, diff --git a/report_xlsx/report/report_partner_xlsx.py b/report_xlsx/report/report_partner_xlsx.py index 0538d85..a53b980 100644 --- a/report_xlsx/report/report_partner_xlsx.py +++ b/report_xlsx/report/report_partner_xlsx.py @@ -11,8 +11,6 @@ class PartnerXlsx(models.AbstractModel): def generate_xlsx_report(self, workbook, data, partners): sheet = workbook.add_worksheet("Report") - i = 0 - for obj in partners: + for i, obj in enumerate(partners): bold = workbook.add_format({"bold": True}) sheet.write(i, 0, obj.name, bold) - i += 1 diff --git a/report_xlsx/static/src/js/report/action_manager_report.js b/report_xlsx/static/src/js/report/action_manager_report.js index 9d30ce5..ff94aec 100644 --- a/report_xlsx/static/src/js/report/action_manager_report.js +++ b/report_xlsx/static/src/js/report/action_manager_report.js @@ -39,6 +39,7 @@ flectra.define("report_xlsx.report", function (require) { url: new_url, data: { data: JSON.stringify([new_url, type]), + context: JSON.stringify(cloned_action.context), }, success: resolve, error: (error) => {