Skip to content

[16.0][ADD] report_docx#1146

Merged
OCA-git-bot merged 1 commit intoOCA:16.0from
hbrunn:16.0-report_docx
Apr 15, 2026
Merged

[16.0][ADD] report_docx#1146
OCA-git-bot merged 1 commit intoOCA:16.0from
hbrunn:16.0-report_docx

Conversation

@hbrunn
Copy link
Copy Markdown
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
Copy Markdown
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
Copy link
Copy Markdown

@Stephanvandenberg Stephanvandenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works brilliantly for users that want to output a report that is pre-filled with data from odoo models but can still be modified after it has been generated.

Copy link
Copy Markdown
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this new addon @hbrunn A nice alternative to py3O that seems easier to use. Time will tell if that's the case. LGTM (Code review + Functional tests)

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@HviorForgeFlow
Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-1146-by-HviorForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f75e394 into OCA:16.0 Apr 15, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at b25623e. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants