Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 19 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 10.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
3 pip · 1 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
1.71 MB
Module directory on disk
Code analysis 0 migration notes 4 models 5 views 0 HTTP endpoints

Description

This module was written to let a py3o fusion server handle format conversion instead of local libreoffice. If you install this module above the report_py3o module, you will have to deploy additionnal software components and run 3 daemons (libreoffice, py3o.fusion and py3o.renderserver). This additionnal complexiy comes with several advantages:

  • much better performances: Libreoffice runs permanently in the background, no need to spawn a new Libreoffice instance upon every document conversion.
  • ability to configure PDF export options in Odoo. This brings many new possibilities such as the ability to generate:
    • PDF forms
    • PDF/A documents (required by some electronic invoicing standards such as Factur-X)
    • watermarked PDF documents
    • password-protected PDF documents

Dependencies

Odoo dependencies
OCA/reporting-engine:
odoo/odoo:
- web
Python dependencies
mock, py3o.formats, py3o.template
System dependencies
libreoffice
Required by
None

Code analysis

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

Views touched 5

XML IDNameModelTypeStatus
py3o_pdf_options_form py3o.pdf.options.form py3o.pdf.options form New
py3o_pdf_options_tree py3o.pdf.options.tree py3o.pdf.options list New
py3o_server_configuration_form_view py3o.server.configuration.form.view py3o.server form New
py3o_server_configuration_tree_view py3o.server.configuration.tree.view py3o.server list New
view_ir_actions_report_base ir.actions.report Inherits report_py3o.py3o_report_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (3)
  • pdf_options_id Many2one → py3o.pdf.options
    help='PDF options can be set per report, but also per Py3o Server. If both are defined, the options on the report are used.' ondelete='restrict' string='PDF Options' args: 'py3o.pdf.options'
  • py3o_is_local_fusion Boolean
    default=True help='Native formats will be processed without a server. You must use this mode if you call methods on your model into the template.' args: 'Local Fusion'
  • py3o_server_id Many2one → py3o.server
    args: 'py3o.server', 'Fusion Server'
Public methods (0)

No public methods.

New fields (40)
  • center_window Boolean
    string='Center Window on Screen'
  • changes Selection
    default='4' args: [('0', 'Not Permitted'), ('1', 'Inserting, Deleting and Rotating Pages'), ('2', 'Filling in Form Fields'), ('3', 'Commenting, Filling in Form Fields'), ('4', 'Any Except Extracting Pages')]
  • content_copying_allowed Boolean
    default=True string='Enable Copying of Content'
  • convert_doc_ref_to_pdf_target Boolean
    string='Convert Document References to PDF Targets'
  • cross_doc_link_action Selection
    default='0' string='Cross-document Links' args: [('0', 'Default'), ('1', 'Open with PDF Reader Application'), ('2', 'Open with Internet Browser')]
  • display_document_title Boolean
  • document_password Char
  • encrypt Boolean
  • export_bookmarks Boolean
    default=True
  • export_bookmarks_named_dest Boolean
    string='Export Bookmarks as Named Destinations'
  • export_comments Boolean
  • export_filesystem_urls Boolean
    string='Export URLs Relative to Filesystem'
  • export_hidden_slides Boolean
    args: 'Export Automatically Insered Blank Pages'
  • export_placeholders Boolean
    default=True
  • hide_menubar Boolean
  • hide_toolbar Boolean
  • hide_window_controls Boolean
    string='Hide Windows Controls'
  • image_compression Selection
    default='jpeg' args: [('lossless', 'Lossless Compression'), ('jpeg', 'JPEG Compression')]
  • image_jpeg_quality Integer
    default=90 help='Enter a percentage between 0 and 100.' string='Image JPEG Quality'
  • image_reduce_resolution Selection
    default='300' string='Reduce Image Resolution' args: [('none', 'Disable'), ('75', '75 DPI'), ('150', '150 DPI'), ('300', '300 DPI'), ('600', '600 DPI'), ('1200', '1200 DPI')]
  • initial_page Integer
    default=1
  • initial_view Selection
    default='0' string='Panes' args: [('0', 'Page Only'), ('1', 'Bookmarks and Page'), ('2', 'Thumbnails and Page')]
  • magnification Selection
    default='0' args: [('0', 'Default'), ('1', 'Fit in Window'), ('2', 'Fit Width'), ('3', 'Fit Visible'), ('4', 'Zoom')]
  • name Char
    required=True
  • open_bookmark_levels Selection
    default='-1' string='Visible Bookmark Levels' args: [('-1', 'All Levels'), ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9'), ('10', '10')]
  • open_fullscreen Boolean
    string='Open in Full Screen Mode'
  • page_layout Selection
    default='0' args: [('0', 'Default'), ('1', 'Single Page'), ('2', 'Continuous'), ('3', 'Continuous Facing')]
  • pdf_form Boolean
    default=True args: 'Create PDF Form'
  • pdf_form_allow_duplicate Boolean
    args: 'Allow Duplicate Field Names'
  • pdf_form_format Selection
    default='0' string='Submit Format' args: [('0', 'FDF'), ('1', 'PDF'), ('2', 'HTML'), ('3', 'XML')]
  • pdfa Boolean
    help='If you enable this option, you will not be able to password-protect the document or apply other security settings.' args: 'Archive PDF/A-1a (ISO 19005-1)'
  • permission_password Char
  • printing Selection
    default='2' args: [('0', 'Not Permitted'), ('1', 'Low Resolution (150 dpi)'), ('2', 'High Resolution')]
  • resize_windows_initial_page Boolean
    string='Resize Windows to Initial Page'
  • restrict_permissions Boolean
  • tagged_pdf Boolean
    args: 'Tagged PDF (add document structure)'
  • text_access_accessibility_tools_allowed Boolean
    default=True string='Enable Text Access for Accessibility Tools'
  • watermark Boolean
    args: 'Sign With Watermark'
  • watermark_text Char
    args: 'WaterMark Text'
  • zoom Integer
    default=100 help='Possible values: from 50 to 1600' string='Zoom Factor'
Public methods (5)
  • check_pdf_options(self)
    @api.constrains('image_jpeg_quality', 'initial_page', 'pdfa', 'cross_doc_link_action', 'magnification', 'zoom')
  • encrypt_change(self)
    @api.onchange('encrypt')
  • odoo2libreoffice_options(self)
  • pdfa_change(self)
    @api.onchange('pdfa')
  • restrict_permissions_change(self)
    @api.onchange('restrict_permissions')

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • is_active Boolean
    default=True args: 'Active'
  • pdf_options_id Many2one → py3o.pdf.options
    help='PDF options can be set per Py3o Server but also per report. If both are defined, the options on the report are used.' ondelete='restrict' string='PDF Options' args: 'py3o.pdf.options'
  • url Char
    help='If your Py3o Fusion server is on the same machine and runs on the default port, the URL is http://localhost:8765/form' required=True args: 'Py3o Fusion Server URL'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…