Skip to content

[16.0][ADD] report_docx#1146

Open
hbrunn wants to merge 1 commit intoOCA:16.0from
hbrunn:16.0-report_docx
Open

[16.0][ADD] report_docx#1146
hbrunn wants to merge 1 commit intoOCA:16.0from
hbrunn:16.0-report_docx

Conversation

@hbrunn
Copy link
Member

@hbrunn hbrunn commented Mar 13, 2026

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

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.

Configuration

To configure this module, you need to:

  1. Go to Settings / Technical / Actions / Report
  2. Create a new report with type DOCX
  3. Fill in the name of a model, ie crm.lead
  4. Upload your DOCX file in the Template field
  5. 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

Known issues / Roadmap

  • support images and embedded objects
  • support concatenating docx files for multiple records
  • support embedding html

@hbrunn hbrunn changed the title [ADD] report_docx [16.0][ADD] report_docx Mar 13, 2026
@hbrunn hbrunn added this to the 16.0 milestone Mar 13, 2026
@hbrunn
Copy link
Member Author

hbrunn commented Mar 13, 2026

CI fixed in #1147

@hbrunn hbrunn force-pushed the 16.0-report_docx branch from 3e521a1 to cbc7015 Compare March 13, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant