Skip to content

[IMP] report_substitute: add hook to render non-qweb-pdf substitutio reports - #1185

Merged
OCA-git-bot merged 1 commit into
OCA:16.0from
AmetrasIntelligence:16.0-report-substitute-render-substitution-hook
Jul 29, 2026
Merged

[IMP] report_substitute: add hook to render non-qweb-pdf substitutio reports#1185
OCA-git-bot merged 1 commit into
OCA:16.0from
AmetrasIntelligence:16.0-report-substitute-render-substitution-hook

Conversation

@baguenth

Copy link
Copy Markdown
Member

_render_qweb_pdf only substitutes when the resolved substitution report's report_type is qweb-pdf; otherwise it silently falls back to rendering the original report. Extract that decision into an overridable _render_qweb_pdf_substitution hook so modules introducing other report types can render their own substitution reports on this path.

… reports

_render_qweb_pdf only substitutes when the resolved substitution report's
report_type is qweb-pdf; otherwise it silently falls back to rendering the
original report. Extract that decision into an overridable
_render_qweb_pdf_substitution hook so modules introducing other report
types can render their own substitution reports on this path.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @sbejaoui,
some modules you are maintaining are being modified, check this out!

@baguenth

Copy link
Copy Markdown
Member Author

Hey @sbejaoui @jjscarafia @HviorForgeFlow @augusto-weiss,

kindly asking for a review :)

@CristianoMafraJunior CristianoMafraJunior left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HviorForgeFlow

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-1185-by-HviorForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit de49633 into OCA:16.0 Jul 29, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at cb3c9ae. Thanks a lot for contributing to OCA. ❤️

@baguenth
baguenth deleted the 16.0-report-substitute-render-substitution-hook branch July 29, 2026 06:37
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.

6 participants