Pdf watermark
report_qweb_pdf_watermark · OCA/reporting-engine
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.11 MB
Module directory on disk
Code analysis
0 migration notes
2 models
3 views
0 HTTP endpoints
Description
This module was written to add watermarks (backgrounds) to PDF reports. Because of the way wkhtmltopdf handles headers and footers in the current versions, it is quite impossible to have a background for the complete page using HTML and CSS. That is why this module inserts the image at the PDF level.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
act_report_xml_view |
ir.actions.report | Inherits base.act_report_xml_view | ||
demo_report_view |
demo_report_view | ir.ui.view | qweb | New |
view_company_form |
res.company | form | Inherits base.view_company_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (3)
-
pdf_watermarkBinaryhelp='Upload an pdf file to use as an watermark on this report.' args: 'Watermark' -
pdf_watermark_expressionCharhelp='An expression yielding the base64 encoded data to be used as watermark. \nYou have access to variables `env` and `docs`' args: 'Watermark expression' -
use_company_watermarkBooleandefault=Falsehelp='Use the pdf watermark defined globally in the company settings.'
-
pdf_has_usable_pages(numpages)@staticmethod
New fields (1)
-
pdf_watermarkBinaryargs: 'Watermark'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…