Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ addon | version | maintainers | summary
[report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 18.0.1.0.1 | <a href='https://github.com/hbrunn'><img src='https://github.com/hbrunn.png' width='32' height='32' style='border-radius:50%;' alt='hbrunn'/></a> | Add watermarks to your QWEB PDF reports
[report_substitute](report_substitute/) | 18.0.1.0.0 | <a href='https://github.com/sbejaoui'><img src='https://github.com/sbejaoui.png' width='32' height='32' style='border-radius:50%;' alt='sbejaoui'/></a> | 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.1 | | Base module to create xlsx report
[report_xlsx](report_xlsx/) | 18.0.1.1.2 | | 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 | <a href='https://github.com/legalsylvain'><img src='https://github.com/legalsylvain.png' width='32' height='32' style='border-radius:50%;' alt='legalsylvain'/></a> <a href='https://github.com/florian-dacosta'><img src='https://github.com/florian-dacosta.png' width='32' height='32' style='border-radius:50%;' alt='florian-dacosta'/></a> | Export data in csv file with SQL requests
Expand Down
2 changes: 1 addition & 1 deletion report_xlsx/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Base report xlsx
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:df3f0781853adbdae4c2bee7cd5bea0c40aed365db64a5e89a54dc99ef796ed4
!! source digest: sha256:0deaf9bb3813b310c567dc4a46f38c64345f7d2ec03dc35e8d3a5f6f97e127ab
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion report_xlsx/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
"version": "18.0.1.1.2",
"development_status": "Mature",
"license": "AGPL-3",
"depends": ["base", "web"],
Expand Down
2 changes: 1 addition & 1 deletion report_xlsx/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Base report xlsx</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:df3f0781853adbdae4c2bee7cd5bea0c40aed365db64a5e89a54dc99ef796ed4
!! source digest: sha256:0deaf9bb3813b310c567dc4a46f38c64345f7d2ec03dc35e8d3a5f6f97e127ab
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_xlsx"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_xlsx"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module provides a basic report class to generate xlsx report.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@ 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));
Expand All @@ -36,7 +30,7 @@ registry
url: "/report/download",
data: {
data: JSON.stringify([url, action.report_type]),
context: JSON.stringify(actionContext),
context: JSON.stringify(user.context),
},
});
} finally {
Expand Down