| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 516 |
| Technical Name |
ahda_print_html_field |
| License | LGPL-3 |
AHDA Print HTML Field
Server-side PDF generation and small Preview/Download actions for HTML fields.
Key Features
- Server-side PDF rendering: client sends
model,res_id, andfield; server fetches the HTML and generates a PDF. - Config-driven display: show buttons only for configured
print.html.configmodel+field entries. - Preview & Download: open PDF in a new tab or download directly.
- Image embedding: converts referenced images to data URIs for reliable PDF rendering.
- Engine fallback: prefers WeasyPrint; falls back to
wkhtmltopdfwith explicit margins and page size.
Configuration
- Create a Print HTML Field Configuration and pick the target model and field.
- Set paper size, orientation, font family/size, and margins (mm) as needed.
Notes
- The server resolves the configuration by
model+field. - If PDF generation fails, install
weasyprintor thewkhtmltopdfbinary on the server.
Contact Us:
AHDA Tech Solution, Jakarta
Odoo Consultation, Customization, and Implementation
ahdasolution@gmail.com
Jakarta, Indonesia
AHDA Tech Solution, Jakarta
Odoo Consultation, Customization, and Implementation
ahdasolution@gmail.com
Jakarta, Indonesia
Please log in to comment on this module