| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) • Purchase (purchase) |
| Lines of code | 756 |
| Technical Name |
vis_print_designer |
| License | OPL-1 |
VIS Print Designer
Design & Print Business Documents with Word/LibreOffice Templates
Stop fighting with QWeb. Design your invoices, sales orders and purchase orders directly in Microsoft Word or LibreOffice Writer, upload them to Odoo and let Jinja2 fill in the live data â then export to PDF or DOCX with one click.
Key Features
- DOCX Template Upload â design in Word / LibreOffice, upload to Odoo
- Jinja2 Data Binding â
{{ record.field }},{% for line in record.line_ids %}directly inside DOCX - Field Reference Widget â browse all model fields, click to copy expression
- PDF Export â auto-fallback: docx2pdf → LibreOffice → mammoth
- Multi-record Print â select many records, merge into one PDF
- Company-aware â global templates or per-company
- Extensible â add any Odoo model via
print.template.mixin
DOCX Template â Design in Word
Design your document with full Word formatting â fonts, tables, logos, signatures.
Insert {{ record.name }} placeholders where you need live data.
How It Works
1. Design
Create your document in Word or LibreOffice Writer. Use {{ record.partner_id.name }} Jinja2 expressions for dynamic data.
2. Upload
Go to Print Designer → Templates → New. Select the Document Type, upload the DOCX file.
3. Print
Open any Invoice / Sale / Purchase → click Print Template smart button → choose format → Generate.
Supported Documents
| Document | Odoo Model | Built-in |
|---|---|---|
| Invoice / Bill | account.move |
Yes |
| Sale Order | sale.order |
Yes |
| Purchase Order | purchase.order |
Yes |
| Any Custom Model | via print.template.mixin |
Extendable |
PDF Conversion â Smart Fallback
The module auto-detects the best converter available on your server:
| Priority | Converter | Fidelity | Best For |
|---|---|---|---|
| 1st | docx2pdf (Microsoft Word) | ★★★★★ | macOS / Windows |
| 2nd | LibreOffice headless | ★★★★☆ | Linux servers |
| 3rd | mammoth + wkhtmltopdf | ★★☆☆☆ | Any environment (fallback) |
Installation
1. Install Python dependencies:
pip install docxtpl pypdf # Optional for PDF conversion: pip install docx2pdf # macOS/Windows (requires Microsoft Word) pip install mammoth # fallback HTML converter # Or on Linux: sudo apt install -y libreoffice
2. Install the module in Odoo:
./odoo-bin -u vis_print_designer -d <your_database>
3. Assign users: Settings → Users → set Print Designer role to User or Manager.
Template Syntax Cheatsheet
{{ record.name }} <-- scalar field
{{ record.partner_id.name }} <-- Many2one relation
{{ format_date(record.invoice_date) }} <-- date helper (dd/mm/yyyy)
{{ format_currency(record.amount_total) }} <-- currency helper
{%tr for line in record.invoice_line_ids %} <-- table row loop
{{ line.name }} | {{ line.quantity }} | {{ line.price_subtotal }}
{%tr endfor %}
Support
For support or customisation enquiries: haoqt.96@gmail.com
Odoo 19 Community & Enterprise compatible · License: OPL-1
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module