This release is a pre-release and may not be stable for production use.
Base report fill PDF
This module provides a basic report class that fills pdfs.
Installation
Make sure you have fdfgen Python module installed:
$ pip install fdfgen
For testing it is also necessary pdftk app installed:
Ubuntu
apt-get install pdftk
OSX
* Install pdftk (https://www.pdflabs.com/tools/pdftk-server/).
Windows
* Install pdftk (https://www.pdflabs.com/tools/pdftk-server/).
Usage
An example of Fill PDF report for partners on a module called module_name:
A python class
from odoo import models
class PartnerFillPDF(models.AbstractModel):
_name = 'report.module_name.report_name'
_inherit = 'report.report_fillpdf.abstract'
@api.model
def get_original_document_path(self, data, objs):
return get_resource_path(
'report_fillpdf', 'static/src/pdf', 'partner_pdf.pdf')
@api.model
def get_document_values(self, data, objs):
objs.ensure_one()
return {'name': objs.name}
A computed form can be executed modifying the computing function
from odoo import models
class PartnerFillPDF(models.AbstractModel):
_name = 'report.module_name.report_name'
_inherit = 'report.report_fillpdf.abstract'
@api.model
def get_form(self, data, objs):
return self.env['ir.attachment'].search([], limit=1)
@api.model
def get_document_values(self, data, objs):
objs.ensure_one()
return {'name': objs.name}
A report XML record
<report id="partner_fillpdf" model="res.partner" string="Fill PDF" report_type="fillpdf" name="report_fillpdf.partner_fillpdf" file="res_partner" attachment_use="False" />
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
Contributors
Enric Tobella <etobella@creublanca.es>
Maintainer
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.
Metadata
Release files for odoo14-addon-report-fillpdf 14.0.1.0.2.dev6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo14_addon_report_fillpdf-14.0.1.0.2.dev6-py3-none-any.whl | Python 3 | none | any | Details for odoo14_addon_report_fillpdf-14.0.1.0.2.dev6-py3-none-any.whl |
Release files / odoo14_addon_report_fillpdf-14.0.1.0.2.dev6-py3-none-any.whl
| Download URL | odoo14_addon_report_fillpdf-14.0.1.0.2.dev6-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c896dcbc6765cd81f805103aeda0c4c4afe72da60d01d664bded4922fdf9e2c5
|
|
BLAKE2b-256 checksum How to use checksums |
520b26f62db095b30093ae45b3c4c6e3b25a368b4d31f9b66dac284eda5f4462
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for odoo14-addon-report-fillpdf 14.0.1.0.2.dev6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.