Ensure that assets are generated and stored in the DB when Odoo starts
If the assets from the database are not up-to-date, they are regenerated by Odoo when we print a report, but to do so Odoo forces the commit, so if an exception occurs after (or during) the report rendering, it let the database in a broken state (picking have been validated in this case).
To prevent this issue, we need to ensure that the assets are well-generated when Odoo starts, not when the report is printed.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0This module makes Odoo prepare its report styles and scripts as soon as the server starts, instead of doing it later when someone prints a report. This avoids a known situation where printing a report could leave the database in a broken state.
When Odoo prints a report, it sometimes needs to rebuild the report's styles and scripts (the 'assets') and store them in the database. To do that, Odoo has to save pending changes first, which can leave the database in a bad state if something goes wrong during or after printing.
This module prevents that by preparing the report assets right when Odoo starts, so they are already up to date when a report is printed.
- It adds a scheduled action named 'Generate report assets' that runs once a month and is planned to run shortly after the server starts.
- The scheduled action calls a new method on the report configuration model (
ir.actions.report) that rebuilds the assets used by reports, without forcing a save of other pending changes. - The assets prepared are the common web assets and the report-specific assets used for HTML and PDF reports.
There is no new menu or screen for users. The module works in the background and touches the report configuration area (ir.actions.report) and the web asset system. It is meant to be installed by administrators and requires no daily user action.
Depends on
Models and fields (1)
- ir.actions.report · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 14.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/web.
terminal Installation and usage
No verified informationInstallation 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.