Repository navigation
[20.0][MIG] report_xlsx_helper: Migration to 20.0 - #5
Merged
Merged
Conversation
…s to print to the 'create_xlsx_report' method + Instanciate the parser and make it available for the 'generate_xlsx_report' method
…A#98) * Allow to define options for workbook creation
* refactor: On new ActionManager override _makeReportUrls and triggerDownload to support XLSX format * pass action to custom _downloadReportXLSX: Need action to get report data * dict constructor to remove context lang
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 88.2% (15 of 17 strings) Translation: reporting-engine-12.0/reporting-engine-12.0-report_xlsx Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx/de/
Currently translated at 94.4% (17 of 18 strings) Translation: reporting-engine-12.0/reporting-engine-12.0-report_xlsx Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx/pt/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-13.0/reporting-engine-13.0-report_xlsx Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-13.0/reporting-engine-13.0-report_xlsx Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-16.0/reporting-engine-16.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_xlsx_helper/
Currently translated at 14.2% (2 of 14 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_xlsx_helper/es/
Currently translated at 100.0% (14 of 14 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_xlsx_helper/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-16.0/reporting-engine-16.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_xlsx_helper/
Currently translated at 100.0% (11 of 11 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_xlsx_helper/es/
Currently translated at 100.0% (11 of 11 strings) Translation: reporting-engine-17.0/reporting-engine-17.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_xlsx_helper/it/
Currently translated at 100.0% (11 of 11 strings) Translation: reporting-engine-18.0/reporting-engine-18.0-report_xlsx_helper Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_xlsx_helper/tr/
- Bump version to 20.0.1.0.0. - content_disposition is no longer exported by odoo.http: import it from odoo.http.stream. - Use fields.Datetime.now() (naive UTC, as context_timestamp expects) instead of datetime.now() flagged by ruff DTZ005. Assisted-by: Claude Fable 5.1
Assisted-by: Claude Fable 5.1
Available types: 'task#', 't#' (case insensitive) Examples:
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 20.0 #5 +/- ##
=======================================
Coverage ? 75.61%
=======================================
Files ? 21
Lines ? 607
Branches ? 58
=======================================
Hits ? 459
Misses ? 130
Partials ? 18 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration of
report_xlsx_helperfrom 19.0 to 20.0 (history ported with oca-port).Depends on #4 (
report_xlsx): this branch is rebased on top of20.0-mig-report_xlsx, so the diff shows both modules until #4 is merged. Do not merge before #4.Changes for 20.0
content_dispositionis no longer exported byodoo.http; it is imported fromodoo.http.streamin the controller.datetime.now()replaced byfields.Datetime.now()in the XLSX footer helper (naive UTC value, ascontext_timestampexpects; flagged by ruff DTZ005 in the 20.0 pre-commit config).No change was needed for the ir.access migration (the module defines no new models), icons, OWL or UoM.
Tests
Installed on a fresh 20.0 database with demo data and ran
-i report_xlsx_helper --test-enable --test-tags /report_xlsx_helper: 0 failed, 0 error(s), no ERROR/CRITICAL in the log. pre-commit (repo config for 20.0) passes.Assisted-by: Claude Fable 5.1