Create report templates in DOCX and receive DOCX files
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_report_docx-16.0.1.0.0.3-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_report_docx-16.0.1.0.0.3-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
640674e25a19a6038f73b08b9c01042a912097ae34ee90159f06957ad02fa9f9
|
|
| MD5 |
f1439839c163609a8621291fd80cbba7
|
|
| BLAKE2b-256 |
d5c1a0023deefd272ace922aceaa7a321711c6962e8435074a6205b3e4ed6f55
|