Print QR Code in Reports: QR code on sales order, invoice, delivery slip
by Aerya IT Solutions https://aerya.net$ 20.82
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Print QR Code in Reports: QR code on sales order, invoice, delivery slip
A QR code on the printed document saves a lot of typing: the customer scans the invoice and lands on its portal page, the driver scans the delivery slip, the colleague scans a contact card. This module adds the code to the reports you pick, with the text you choose, in the corner you choose, without touching the report templates by hand.
A link to the customer portal page, or any text built from the document
Picked per report, with the corner, the size and a caption
Contact cards with a vCard, and any other PDF report with a page area
The screenshots use a fictitious tool company from Hamburg with invented customers, prices in euros and 19 % VAT.
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
in Odoo 18
no warnings
each code is compared with an independent encoder
One rule per report
Settings, QR Codes in Reports: pick a report, say what the code carries, choose the corner (top or bottom, left or right), the size in millimetres, the error correction level and an optional caption. Switch the rule off to stop printing the code.
The module finds the page area of the report template and extends it. Deleting the rule, or the module, removes the extension again.

Orders and invoices with the portal link
{portal_url} is the customer portal page of the document with its access link, so a scan opens the order or the invoice online, where the customer can read, download and pay it.
The same placeholder works on every document that has a portal page. A caption such as "Scan to open the order online" goes under the code.

Delivery slips and any field of the document
Any field of the document can go in the text: {name}, {amount_total}, {partner_id.name}, {date_order}. A delivery slip can carry its reference, so the driver scans it when the goods arrive.
The text is checked when you save the rule: a field that does not exist or a list field is refused with a message.

Contact cards with a vCard
A contact card report prints the contact and a QR code with its vCard: name, company, phone, e-mail, website and address. Scan it with a phone and the contact is saved.

More screenshots
Screenshots of Odoo 18 Enterprise. Click an image to enlarge it.

The rules, with the invoice, order and delivery slip switched on

The posted invoice with its code and caption
Everything included
Any PDF report
Invoices, orders, delivery slips, contacts and the reports of other apps that have a page area.
Text from the document
Fields of the record and of its partner: {name}, {partner_id.vat}, {amount_total}. No code can run in a template.
Ready-made rules
Rules for the invoice, sales order, purchase order and delivery slip are created switched off.
Safe to print
A document whose text is too long is printed without the code, so a report never stops.
No extra library
The code is drawn by the barcode renderer of Odoo's report engine.
Four languages
The interface is in English, German, Spanish and Romanian.
How it works
Open Settings, QR Codes in Reports, and create a rule.
Pick the report and the text, and look at the preview.
Print the document: the code sits in the corner.
Switch the rule off or delete it when you no longer want it.
Compatibility
| Versions | Odoo 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Modules | Base (base) only, reports of any installed app |
| Placement | Top or bottom, left or right of the page, 10 to 100 mm |
| Languages | English, German, Spanish, Romanian |
What it does not do
A text that uses a field the report's model does not have, a list or picture field, {portal_url} on a document with no portal page, a report whose template has no page area and a size outside 10 to 100 mm are refused with a message that names the case.
The Swiss QR bill, the EPC payment QR and the QR codes of tax authorities are not covered. Reports that are not PDF or HTML reports, and grids of small labels (the stock lot and location sheets), are not changed.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 18, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 651 |
| Technical Name |
aerya_report_qrcode |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module