This module adds a context variable to reports. A possible use for this context could be hiding some fields or many other configuration options.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets you attach a context value to any report action, so reports can behave differently (for example hide fields) depending on configuration. A global default context can also be set for all reports.
This module adds a new field called Context Value on report actions (the records that define how a report is printed). You can find it on the report configuration form, right after the print report name field.
- The value is a Python-style dictionary, empty by default. It is required, so a report action always has one.
- When a report is rendered or opened, the module builds the final context by combining three sources: the global default context stored in a system parameter, the context set on that specific report, and the current user context. The user context wins in case of conflict.
- A system parameter named report.default.context is created with an empty dictionary, so administrators can set a default context that applies to every report.
- The module also adjusts the web report controller so that the context sent when printing from the web client is merged the same way.
It touches the report action model ir.actions.report and the report controller. No new menus are added; the setting appears inside the existing report configuration screen.
Depends on
Models and fields (1)
- ir.actions.report · extends an existing modelcontext (Context Value)
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: 6 confirmed, 3 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/reporting-engine.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To configure this module, you need to:
- Enter Odoo in debug mode.
- To add a specific context to a report, you should go to Settings -\> Reports -\> Reporting and look for the report you want to edit on the list. You will see that now they contain a new field called Context Value , where you will be able to add all the desired context parameters.
- Go to Settings -\> Parameters -\> System Parameters. On the system parameters list, look for report.default.context, which is a Python dictionary variable where you can add a context that will be common for all reports.
It can also be added on the developer side using:
YOUR CONTEXT HERE
No verified information in OCA: Installation, 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.