OdooWiki OCA HUB

Report Generate Helper

report_generate_helper folder_open OCA/reporting-engine open_in_new
Reporting License: AGPL-3

This module allows you to get a report from a record by passing the report name.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a helper method that lets any Odoo record generate a report by simply giving the report name, returning the file name and content ready to use.

This module is a small technical helper for developers and integrators. It does not add any menu, screen or button for end users. Instead, it adds a method called _generate_report to every record in Odoo (through the base model), so that any record can produce a report on demand.

When called with a report name, the method looks up the report definition in ir.actions.report, works out which internal rendering method matches the report type (for example PDF or HTML), and runs it for the selected record(s). It then builds the output file name: if the report has a custom print name and exactly one record is being reported, that name is evaluated with the record available; otherwise the report's own name is used. The extension is taken from the generated content.

The result is a pair: the file name and the report content. This makes it easy for other modules, server actions or automated processes to generate a report without duplicating Odoo's internal report logic. The module only depends on base and extends ir.actions.report with a small method that maps a report type to its converter method name.

Depends on

base
Models and fields (1)
  • ir.actions.report · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 16.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/reporting-engine.

terminal Installation and usage

No verified information

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.

info

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.