Skip to content

[IMP] report_qweb_pdf_watermark: extract _get_watermark method - #1195

Open
AnmollGarg wants to merge 1 commit into
OCA:18.0from
AnmollGarg:fix_report_qweb_pdf_watermark
Open

[IMP] report_qweb_pdf_watermark: extract _get_watermark method#1195
AnmollGarg wants to merge 1 commit into
OCA:18.0from
AnmollGarg:fix_report_qweb_pdf_watermark

Conversation

@AnmollGarg

Copy link
Copy Markdown

Extracts watermark resolution logic from _run_wkhtmltopdf into a dedicated _get_watermark(report_ref, docids=False) method.

This provides a clean hook for downstream modules to inject custom watermarks without duplicating PDF processing logic.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot added series:18.0 mod:report_qweb_pdf_watermark Module report_qweb_pdf_watermark labels Sep 11, 2026
@AnmollGarg
AnmollGarg force-pushed the fix_report_qweb_pdf_watermark branch from c0ef5b8 to 70bd318 Compare September 11, 2026 08:54

@hbrunn hbrunn 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.

I've have expected that those cases use an expression and some custom function, but don't mind this refactoring

Comment thread report_qweb_pdf_watermark/models/report.py Outdated

@hbrunn hbrunn 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.

please squash your commits

@AnmollGarg
AnmollGarg force-pushed the fix_report_qweb_pdf_watermark branch from 4866edc to b6f4cc0 Compare September 11, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:report_qweb_pdf_watermark Module report_qweb_pdf_watermark series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants