DOCX reports
This module allows to provide docx files as report templates to generate docx reports.
Table of contents
Use Cases / Context
This module was developed because for some users it is easier to use the docx format for their templates.
As it uses a slightly different templating language, it is not a drop-in replacement for report_py3o.
It also does not provide any format conversions, though it should be pretty simple to write a glue module that converts the resulting docx files to formats supported by report_py3o.
Installation
To install this module, you need to:
pip install docxtpl
Configuration
To configure this module, you need to:
Go to Settings / Technical / Actions / Report
Create a new report with type DOCX
Fill in the name of a model, ie crm.lead
Upload your DOCX file in the Template field
To help with crafting expressions in the template, switch to the DOCX tab, select a record and fill in some expression. When happy with the result, copy the code into your template document. Don’t forget to read the extensive documentation on the right hand side
Usage
To use this module, you need to:
Print some report created according to the configuration manual
Known issues / Roadmap
support images and embedded objects
support concatenating docx files for multiple records
support embedding html
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 to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Holger Brunn <mail@hunki-enterprises.com> (https://hunki-enterprises.com)
Other credits
The development of this module has been financially supported by:
The Open Source Company (https://tosc.nl)
Maintainers
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.
Current maintainer:
This module is part of the OCA/reporting-engine project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Release files for odoo-addon-report-docx 16.0.1.0.0.3
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 | Reset |
|---|---|---|---|---|
| odoo_addon_report_docx-16.0.1.0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_report_docx-16.0.1.0.0.3-py3-none-any.whl
| Download URL | odoo_addon_report_docx-16.0.1.0.0.3-py3-none-any.whl |
|---|---|
| Size | 50.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
640674e25a19a6038f73b08b9c01042a912097ae34ee90159f06957ad02fa9f9
|
|
BLAKE2b-256 checksum How to use checksums |
d5c1a0023deefd272ace922aceaa7a321711c6962e8435074a6205b3e4ed6f55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|