Skip to content
Health
54/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 21 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 16.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.06 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

Description

This module allows for front and back covers to be added to the generated PDF reports. They can be added as a separate page, at the beginning or the end of the report, but they can also overlap the first and last page of the actual report, respectively.

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 1

XML IDNameModelTypeStatus
act_report_xml_view ir.actions.report Inherits base.act_report_xml_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (6)
  • back_cover_overlap Boolean
    default=False help='When set, the back cover of the report will overlap with the contents of the last page of the report. This is useful to include some information of the report in the back cover.' string='Overlap Back Cover'
  • back_cover_pdf Binary
    help='Upload an PDF file to use as a back cover on this report.' string='Back Cover PDF'
  • front_cover_overlap Boolean
    default=False help='When set, the front cover of the report will overlap with the contents of the first page of the report. This is useful to include some information of the report in the front cover.' string='Overlap Front Cover'
  • front_cover_pdf Binary
    help='Upload an PDF file to use as a front cover on this report.' string='Front Cover PDF'
  • use_back_cover Boolean
    default=False help='Use a back cover when rendering the PDF report.'
  • use_front_cover Boolean
    default=False help='Use a front cover when rendering the PDF report.'
Public methods (4)
  • insert_cover_pages(self, pdf, pages, pdf_front_cover, pdf_back_cover, use_front_cover, use_back_cover, front_cover_overlap, back_cover_overlap)
    @api.model
  • load_cover_pdfs(self, front_cover, back_cover, use_front_cover, use_back_cover)
    @api.model
  • load_covers(self, report_sudo, front_cover, back_cover, use_front_cover, use_back_cover)
  • pdf_check_pages(self, num_pages, front=True)
    @api.model

Loading…

Loading…