Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 11 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 3

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_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_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…

Loading…

Loading…