This module provides a set of tools to facilitate the creation of excel reports with format xlsx.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0This module gives developers a ready-made toolkit for building Excel (.xlsx) reports in Odoo, with pre-defined cell formats, automatic sheet-name cleaning and a helper to serve xlsx files over the web.
This is a technical helper module: it does not add menus or buttons for end users, but it makes Excel reports possible and consistent across Odoo.
- It extends the abstract report model
report.report_xlsx.abstractwith a standard way to generate a workbook: each report declares its worksheets and the module creates them, writes the title, the header line and the data lines. - It provides a large set of ready-to-use cell formats (alignment left/centre/right, bold, amounts, percentages, integers, dates, grey/yellow/blue headers, bordered table cells, and conditional formats that show negative numbers in red), so all xlsx reports share the same look.
- It automatically sanitises worksheet names: invalid characters ( / \ * [ ] : ? ) are removed and names are cut to 31 characters; if sanitising is disabled, a clear error is raised instead.
- It adds a standard footer showing the report date/time and page number, and helpers to set column widths, freeze panes and merge title cells.
- It extends
ir.actions.reportso that an xlsx report can be rendered even when no report record exists, using the report name from the context, and it extends the web report controller so xlsx files are returned with the correct file name and content type. - A sample report on partners (
report.report_xlsx_helper.test_partner_xlsx) shows the pattern: columns for name, number of contacts and creation date.
Depends on
Required by other modules
Models and fields (2)
- report.report_xlsx.abstract · extends an existing model
- report.report_xlsx_helper.test_partner_xlsx · new model
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/reporting-engine.
terminal Installation and usage
OCA documentation · Odoo 19.0Installation
Source · Odoo 19.0This module requires report_xlsx version 13.0.1.0.0 or higher.
Usage
Source · Odoo 19.0In order to create an Excel report you can define a report of type 'xlsx' in a static or dynamic way:
- Static syntax: cf.
account_move_line_report_xlsfor an example. - Dynamic syntax: cf.
report_xlsx_helper_demofor an example
The AbstractReportXlsx class contains a number of attributes and methods to facilitate the creation excel reports in Odoo.
- Cell types string, number, boolean, datetime.
- Cell formats The predefined cell formats result in a consistent look and feel of the Odoo Excel reports.
- Cell formulas Cell formulas can be easily added with the help of the
_rowcol_to_cell()method. - Excel templates It is possible to define Excel templates which can be adapted by 'inherited' modules. Download the
account_move_line_report_xlsmodule from as example. - Excel with multiple sheets Download the
account_asset_management_xlsmodule from as example.
No verified information in OCA: Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.