Repository
OCA/reporting-engine · module folder · Try on Runboat
Module version
1.1.0
Category
Technical Settings
Folder size
0.13 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/reporting-engine
Last tracking update
2026-08-07 08:43:02
Authors
Odoo Community Association (OCA), Therp BV
Maintainers
Odoo Community Association (OCA), Therp BV
Committers
Holger Brunn, tarteo, Weblate, OCA-git-bot, oca-ci, bosd
Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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_base_document_layout base.document.layout Inherits web.view_base_document_layout
view_company_form res.company form Inherits base.view_company_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • pdf_watermark Binary
    readonly=False related='company_id.pdf_watermark' args: 'Watermark'
Public methods (0)

No public methods.

New fields (3)
  • pdf_watermark Binary
    help='Upload an pdf file to use as an watermark on this report.' args: 'Watermark'
  • pdf_watermark_expression Char
    help='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_watermark Boolean
    default=False help='Use the pdf watermark defined globally in the company settings.'
Public methods (1)
  • pdf_has_usable_pages(numpages)
    @staticmethod

New fields (1)
  • pdf_watermark Binary
    args: 'Watermark'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
279 days ago
Last activity
26 days ago
Repository
OCA/reporting-engine
Pull request
[19.0][MIG] report_qweb_pdf_watermark (#1091)