OdooWiki OCA HUB
Reporting License: AGPL-3

This module allows to provide docx files as report templates to generate docx reports.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you build report templates as Word (.docx) files and print them from Odoo, producing Word documents or a zip of documents when several records are selected.

This module adds a new report type called DOCX to Odoo's report settings. Instead of designing a report in the Odoo report editor, you upload a Word file that contains placeholders, and Odoo fills it in with data from your records.

Where it appears: - In the report configuration screen (Settings > Technical > Reports, or the report action form), a new DOCX section appears when the report type is set to DOCX, with fields to upload the template and choose what happens with multiple records. - A DOCX tab on the same screen offers an Expression Tester, where you pick a record, type an expression and immediately see the result, plus a Help panel listing the variables and functions you can use. - Reports of this type can be bound to a model, so they show up in the Print menu of that model's records.

Business rules and behaviour: - The template file is required when the report type is DOCX. - If several records are selected, you choose between producing one zip file containing one document per record, or a single document where the template loops over all selected records. - The file name can be computed from the record (for example the record's name) and the correct .docx or .zip extension is added automatically. - The Help panel documents useful helpers such as formatting amounts, dates, durations, converting numbers to words, and summing values.

It extends the report action model ir.actions.report and works together with the mail module's rendering context.

Depends on

mail
Models and fields (1)
  • ir.actions.report · extends an existing modeldocx_help, report_type, docx_template (Template), docx_multi_mode (Multi records), docx_template_filename, docx_expression_test_code (Code), docx_expression_test_record (Record), docx_expression_test_result (Result), docx_expression_test_model_id, docx_expression_test_expression (Test expression)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/reporting-engine.

terminal Installation and usage

OCA documentation · Odoo 16.0

To install this module, you need to:

pip install docxtpl

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

To use this module, you need to:

  • Print some report created according to the configuration manual
info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.