diff --git a/README.md b/README.md index 09616f05fe..574e5f9d29 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ addon | version | maintainers | summary [report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 18.0.1.0.1 | hbrunn | Add watermarks to your QWEB PDF reports [report_substitute](report_substitute/) | 18.0.1.0.0 | sbejaoui | This module allows to create substitution rules for report actions. [report_wkhtmltopdf_param](report_wkhtmltopdf_param/) | 18.0.1.0.1 | | Add new parameters for a paper format to be used by wkhtmltopdf command as arguments. -[report_xlsx](report_xlsx/) | 18.0.1.1.0 | | Base module to create xlsx report +[report_xlsx](report_xlsx/) | 18.0.1.1.1 | | Base module to create xlsx report [report_xlsx_helper](report_xlsx_helper/) | 18.0.1.0.0 | | Report xlsx helpers [report_xml](report_xml/) | 18.0.1.1.0 | | Allow to generate XML reports [sql_export](sql_export/) | 18.0.1.1.1 | legalsylvain florian-dacosta | Export data in csv file with SQL requests diff --git a/report_xlsx/README.rst b/report_xlsx/README.rst index 1c075b38fa..ca205d4e7d 100644 --- a/report_xlsx/README.rst +++ b/report_xlsx/README.rst @@ -11,7 +11,7 @@ Base report xlsx !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:348637cd2b2c4bdfd48c6642e3e5514ea971efa03bde9d412682f23d5ee0fa85 + !! source digest: sha256:df3f0781853adbdae4c2bee7cd5bea0c40aed365db64a5e89a54dc99ef796ed4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/report_xlsx/__manifest__.py b/report_xlsx/__manifest__.py index ebccb0cb4e..0d1872d8a3 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://github.com/OCA/reporting-engine", "category": "Reporting", - "version": "18.0.1.1.0", + "version": "18.0.1.1.1", "development_status": "Mature", "license": "AGPL-3", "depends": ["base", "web"], diff --git a/report_xlsx/static/description/index.html b/report_xlsx/static/description/index.html index e90470b903..8b61aba998 100644 --- a/report_xlsx/static/description/index.html +++ b/report_xlsx/static/description/index.html @@ -372,7 +372,7 @@

Base report xlsx

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:348637cd2b2c4bdfd48c6642e3e5514ea971efa03bde9d412682f23d5ee0fa85 +!! source digest: sha256:df3f0781853adbdae4c2bee7cd5bea0c40aed365db64a5e89a54dc99ef796ed4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runboat

This module provides a basic report class to generate xlsx report.

diff --git a/report_xlsx/static/src/js/report/action_manager_report.esm.js b/report_xlsx/static/src/js/report/action_manager_report.esm.js index dd85ed84e8..436cccf9a5 100644 --- a/report_xlsx/static/src/js/report/action_manager_report.esm.js +++ b/report_xlsx/static/src/js/report/action_manager_report.esm.js @@ -8,8 +8,14 @@ registry if (action.report_type === "xlsx") { const type = action.report_type; let url = `/report/${type}/${action.report_name}`; + for (const key_data in action.data) { + action.context[key_data] = action.data[key_data]; + } const actionContext = action.context || {}; if (action.data && JSON.stringify(action.data) !== "{}") { + if (!url.includes(`/${actionContext.active_id}`)) { + url += `/${actionContext.active_id}`; + } // Build a query string with `action.data` (it's the place where reports // using a wizard to customize the output traditionally put their options) const action_options = encodeURIComponent(JSON.stringify(action.data)); @@ -30,7 +36,7 @@ registry url: "/report/download", data: { data: JSON.stringify([url, action.report_type]), - context: JSON.stringify(user.context), + context: JSON.stringify(actionContext), }, }); } finally {