Skip to content

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

Open
baguenth wants to merge 1 commit into
OCA:16.0from
AmetrasIntelligence:16.0-report-substitute-render-substitution-hook
Open

[IMP] report_substitute: add hook to render non-qweb-pdf substitutio reports#1185
baguenth wants to merge 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

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.

5 participants