This module allows to print QR in better structure than the standard odoo.
The original image looks like the following
With the new generator, it looks like:
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Generate high-quality QR codes directly from Odoo reports and web pages. The module adds a public URL and a helper method that turn any text or URL into a QR image in PNG or SVG format.
This module improves how QR codes are produced in Odoo reports. It adds a public web address, /report/qr, that anyone can call with a value (for example a URL or a reference) and optional settings such as box size, border, and output format. The address returns a ready-to-use image: PNG by default, or SVG when requested.
Behind the scenes, the module extends the report engine (ir.actions.report) with a new helper called qr_generate. Report designers and developers can use this helper to create QR images inside report templates, choosing the size of the squares, the width of the white border, and the colours of the foreground and background.
- Supported output formats: PNG, SVG, SVG fragment, and SVG path.
- Customisable appearance: box size, border, fill colour, and background colour.
- If the value cannot be converted into a QR code, the module raises a clear error instead of returning a broken image.
The module does not add menus, database fields, or scheduled actions. It only provides the QR generation service and the public route that other parts of Odoo, reports, or external pages can call.
Depends on
Models and fields (1)
- ir.actions.report · extends an existing 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: 7 confirmed, 2 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.0When creating new reports, you should use a path like the following:
The error_correction parameter controls the error correction used for the QR Code. The following four constants are made available:
- error_correction = 1: About 7% or less errors can be corrected.
- error_correction = 0: About 15% or less errors can be corrected.
- error_correction = 3: About 25% or less errors can be corrected.
- error_correction = 2: About 30% or less errors can be corrected.
The box_size parameter controls how many pixels each "box" of the QR code is. The default is 3. The border parameter controls how many boxes thick the border should be (the default is 4, which is the minimum according to the specs).
The version parameter is an integer from 1 to 40 that controls the size of the QR Code (the smallest, version 1, is a 21x21 matrix). Set to None and use the fit parameter when making the code to determine this automatically.
fill_color and back_color can change the background and the painting color of the QR, when using the default image factory.
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.