OdooWiki OCA HUB

Report qweb auto generation

base_report_auto_create_qweb folder_open OCA/server-tools open_in_new
Tools License: AGPL-3

When creating a report in Settings > Technical > Actions > Reports or Settings > Technical > Reports > Reports it will create an empty Qweb template and the required linking info so that the user does not need to know how to do all the links.

New duplication button added, it enables the possibility of duplicating a report and assigning to the duplicated one a suffix. If the copy option provided by the system is used this will add 'copy' as suffix.

Be careful with this option as it can create many unnecessary Qweb views because it duplicates all the related files to the report you are copying.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Create QWeb report templates automatically when you add a report in Odoo, and duplicate an existing report with a custom suffix, including its linked QWeb views.

This module makes report setup easier for users who don't know how QWeb templates are linked to reports.

  • On a report record (ir.actions.report), a new "Create QWeb view" button appears when the report type is QWeb PDF or QWeb HTML. Pressing it creates an empty QWeb template and the related external identifier, so the report is properly linked without manual technical work.
  • When you create a new QWeb report, the template name is automatically cleaned (accents removed) and must contain at least one dot; otherwise Odoo shows an error asking for a dot in the template name.
  • A "Duplicate Report" button is added on the report form. It opens a small popup where you type a suffix (default "copy"). Confirming duplicates the report and its associated QWeb views, renaming them with that suffix.
  • The standard copy action also uses the suffix logic when duplication is enabled, adding "copy" as suffix if none is given.

It touches the report action model and its associated views, and adds a small duplication wizard. Be aware that duplicating a report also duplicates all its related QWeb views, which can create many extra views.

Depends on

base
Models and fields (2)
  • ir.actions.report · extends an existing model
  • ir.actions.report.duplicate · new modelsuffix

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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/server-tools.

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.