Skip to content

Syncing from upstream OCA/reporting-engine (18.0) - #856

Merged
bt-admin merged 36 commits into
brain-tec:18.0from
OCA:18.0
Oct 10, 2025
Merged

Syncing from upstream OCA/reporting-engine (18.0)#856
bt-admin merged 36 commits into
brain-tec:18.0from
OCA:18.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

etobella and others added 30 commits September 4, 2025 03:57
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-15.0/reporting-engine-15.0-report_qweb_encrypt
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-report_qweb_encrypt/
Currently translated at 100.0% (11 of 11 strings)

Translation: reporting-engine-15.0/reporting-engine-15.0-report_qweb_encrypt
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-report_qweb_encrypt/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-16.0/reporting-engine-16.0-report_qweb_encrypt
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_qweb_encrypt/
…m_name

reportname is not only a string but also a model or integer, the method
_get_report handles those cases to return the report.
mymage and others added 6 commits September 4, 2025 03:57
Currently translated at 100.0% (11 of 11 strings)

Translation: reporting-engine-16.0/reporting-engine-16.0-report_qweb_encrypt
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_qweb_encrypt/it/
Changelog:

Controllers:
- Updated `report_download` parameters and reduce nested conditions.
- Decoded URL query parameters safely using
  `url_decode(url.split("?", 1)[1])`.

Models:
- Replaced `_()` by `self.env._()`.
- Removed unnecessary intermediate variables.
- Renamed variable `report` to `report_sudo` for clarity on sudoed
  record.

Views:
- Replaced `attrs` by individual `invisible` attributes.

Assets:
- Added `EncryptDialog` OWL component to prompt user for encryption
  password.
- Implemented `download_function` to handle password injection and PDF
  download.
- Refactored report URL building into `buildReportUrl` helper.
- Integrated `EncryptDialog` in `ir.actions.report handlers` registry
  under key `qweb-pdf-password`.
- Updated XML template `report_qweb_encrypt.EncryptDialogBody`: added
  password input field with `t-ref="password"`, added placeholder for
  better UX.
Signed-off-by moylop260
@bt-admin bt-admin added the 18.0 label Oct 10, 2025
@bt-admin
bt-admin merged commit 9681ed0 into brain-tec:18.0 Oct 10, 2025
4 checks passed
@codecov

codecov Bot commented Oct 10, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.16832% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.51%. Comparing base (32cc44d) to head (48cc1af).
⚠️ Report is 75 commits behind head on 18.0.

Files with missing lines Patch % Lines
report_qweb_encrypt/controllers/main.py 31.81% 15 Missing ⚠️
report_qweb_encrypt/models/ir_actions_report.py 95.34% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0     #856      +/-   ##
==========================================
+ Coverage   81.47%   81.51%   +0.04%     
==========================================
  Files         142      149       +7     
  Lines        3816     3917     +101     
  Branches      405      412       +7     
==========================================
+ Hits         3109     3193      +84     
- Misses        555      571      +16     
- Partials      152      153       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.