Skip to content

[19.0][MIG] report_substitute: Migration to 19.0 - #1186

Open
domenicostragapede wants to merge 42 commits into
OCA:19.0from
domenicostragapede:19.0-mig-report_substitute
Open

[19.0][MIG] report_substitute: Migration to 19.0#1186
domenicostragapede wants to merge 42 commits into
OCA:19.0from
domenicostragapede:19.0-mig-report_substitute

Conversation

@domenicostragapede

@domenicostragapede domenicostragapede commented Aug 5, 2026

Copy link
Copy Markdown

report_substitute - Migration to 19.0

Summary

Migration of the report_substitute module from Odoo 18.0 to 19.0.

Changes

__manifest__.py

  • Bumped version from 18.0.1.0.0 to 19.0.1.0.0.

models/mail_thread.py

  • Adapted message_post_with_source call to the new Odoo 19.0 API: positional arguments (render_values, message_type, subtype_xmlid, subtype_id) are now passed as keyword arguments.

static/src/js/action_manager.esm.js

  • Replaced var with let for active_ids declaration (ES6 modernization).

tests/test_report_substitute.py

  • Added @tagged("post_install", "-at_install") decorator to ensure demo data is loaded before tests run.
  • Migrated setUp to setUpClass (classmethod) following Odoo 19.0 test conventions.
  • Removed dependency on demo data: test records are now created programmatically in setUpClass instead of using env.ref() to load demo XML data, ensuring tests work reliably in all environments.

README.rst & static/description/index.html

  • Updated all references and links from branch 18.0 to 19.0 (GitHub, Weblate, Runboat badges and URLs).

Related to #1070

sbejaoui and others added 30 commits August 5, 2026 11:52
This addon give the possibility to substitute a report action by another based on some criteria.
Currently translated at 100.0% (21 of 21 strings)

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

Translation: reporting-engine-17.0/reporting-engine-17.0-report_substitute
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_substitute/
mymage and others added 11 commits August 5, 2026 11:52
Currently translated at 100.0% (19 of 19 strings)

Translation: reporting-engine-17.0/reporting-engine-17.0-report_substitute
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-report_substitute/it/
…ect report handler

When the report type differs between the original report and the substitution,
the substitution_handler must return the handler corresponding to the substitution report type

Failing to do so may cause issues, as the report action would be executed using
a handler from a different report type, leading to unexpected behavior or errors
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-18.0/reporting-engine-18.0-report_substitute
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_substitute/
@OCA-git-bot OCA-git-bot added series:19.0 mod:report_substitute Module report_substitute labels Aug 5, 2026
@domenicostragapede
domenicostragapede force-pushed the 19.0-mig-report_substitute branch from 5dbcd4c to 86f382b Compare August 5, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.