| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 163 |
| Technical Name |
ad_report_docx |
| License | LGPL-3 |
| Website | https://adreaminnovations.odoo.com/ |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 163 |
| Technical Name |
ad_report_docx |
| License | LGPL-3 |
| Website | https://adreaminnovations.odoo.com/ |
| Versions | 17.0 18.0 19.0 |
DOCX Report Generator
Print and download your standard QWeb reports in fully editable Microsoft Word (DOCX) format natively within Odoo. Eliminate manual transcription and empower your team to customize outgoing documents on the fly.
Stop wasting time re-keying static PDF exports
Standard Odoo reports like Invoices, Purchase Orders, and Sales Quotations are generated in PDF format. While PDFs are excellent for locking layouts, they are rigid and impossible to edit without expensive software that often breaks table grids, text alignments, and company branding.
When sales, finance, or legal teams need to make a quick adjustments such as tweaking specific contract terms, adding custom discounts, or formatting buyer instructionsâthey must manually copy-paste the data or re-create the entire document in Microsoft Word.
The DOCX Report module integrates directly with Odoo's QWeb engine. It allows users to print and download reports directly as editable Word Documents. Using layout conversion parameters, it preserves text flow, margins, and borders, ensuring the document is ready for immediate editing.
Key Document Workflows
- Sales Orders & Proposals: Download standard order templates and customize product details or addendum terms for specific clients.
- Invoicing & Billing: Tweak payment terms or include personalized billing notes before dispatching the final document.
- Vendor Purchase Orders: Add localized delivery terms, specifications, or customized item attributes on the fly.
- HR Agreements & Slips: Export standard templates to Word to safely add confidential annexures or employee-specific notes.
Main Module Features
A seamless bridge between Odoo's native QWeb HTML/PDF rendering engine and standard OpenXML Microsoft Word formatting.
Native QWeb Integration
Extends Odoo's report action type to support `qweb-docx` directly. No custom template engines requiredâit converts your existing views.
Fidelity Layout Rendering
Utilizes advanced layout analysis parameters to convert PDF documents, keeping tables grouped, text aligned, and margins intact.
One-Click Downloads
Adds a clean handler inside Odoo's frontend print menus. Users simply hit print and receive the converted `.docx` file immediately.
Fully Editable Structure
Converts text blocks into editable Word paragraphs and grid lines into native Word tables rather than flattened image snapshots.
Universal Application
Works across all Odoo modules and custom addons. Any action inherited from `ir.actions.report` can be toggled to DOCX output format.
Secure Local Execution
All PDF-to-DOCX conversions are executed server-side on your Odoo instance. No business data is sent to external APIs or third-party web services.
Under the Hood: Conversion Engine
The backend leverages specialized python-docx and PyMuPDF-based parser parameters to maintain document layouts:
- Border & Table Parsing: Uses a 5.0pt connected border tolerance to group table columns accurately and prevent broken rows in Word.
- Line & Text Overlap Detection: Filters overlapping lines using a 0.9 overlap threshold, ensuring headers and signatures remain clear.
- Isolated Temporary File Handling: Saves files in secure temporary system paths before cleaning them up immediately after download.
Administrator Settings & Activation
Odoo administrators can set up and manage DOCX reports directly in the backend:
- Report Type Selection: Simply select `DOCX` from the `report_type` field dropdown in Odoo's Report Action form.
- Associated QWeb Views: Retains standard QWeb view configuration. Developers can override reports using normal XML layouts.
- Automatic Frontend Interception: The built-in JS action handler overrides the standard action sequence for `qweb-docx` to block the UI and handle downloads cleanly.
Interface Preview
Report Configuration
Change Report Type to DOCX on any standard report action to activate editable document generation.
Native Print Options
Print or download your report directly from the standard action print dropdown menu inside Odoo.
Editable Preview
Open and edit files in MS Word or standard document editors with styles, alignments, and grids retained.
Quick Setup Guide
1. Dependencies
Ensure `pdf2docx`, `pymupdf`, `opencv-python-headless`, and `python-docx` are installed on the server.
2. Module Install
Add the module to your Odoo addons folder and install the DOCX Report app from the Apps menu.
3. Set Report Type
Go to Settings > Actions > Reports, select your target report, and set its Report Type to DOCX.
4. Print Report
Go to your records (e.g. Sales Orders), click Print, choose the report, and edit the downloaded file.
Need Odoo customization or integration support?
ADream Innovations provides consulting, design, and engineering services for businesses using Odoo. We assist with custom Odoo Development, Odoo Customization, and full Odoo Implementation setups. We also help build custom API Integrations and eCommerce Integrations to connect Odoo with your existing workflows.
If you need a professional ERP Consulting evaluation of your processes or require Long-Term Odoo Support, contact our team to discuss your project requirements.
Developed by ADream Innovations under standard LGPL-3 licensing. For software updates, bug reports, or consulting inquiries, contact us.
Email: info@adream-innovation.odoo.com
Website: https://adreaminnovations.odoo.com
Please log in to comment on this module