From a3e9c525f561501f8df3e6791f0b2401ffdf1431 Mon Sep 17 00:00:00 2001
From: Shawcker
Date: Thu, 24 Nov 2022 14:46:46 +0000
Subject: [PATCH] [FIX] account: qr_code_urls bug in report invoice template
To reproduce:
1) activate qr code on invoices
2) print an invoice with a qr code
3) print a followup letter, and attach the printed invoice
-> error due to missing 'qr_code_urls' variable in invoice template
This can happen with any report calling this template, thus we decided to set the qr_code_urls
inside the `report_invoice_document` template directly, so we never need to set it again in _get_report_values()
This allows to remove the following report classes (done in master due to stable policy)
- `ReportInvoiceWithoutPayment`
- `ReportInvoiceWithPayment`
- `PosInvoiceReport` (not even used anywhere)
closes odoo/odoo#106605
X-original-commit: a87460bdb82b7b2ab88f397f3506d0f380d86cfd
Signed-off-by: Brice Bartoletti (bib)
---
addons/account/views/report_invoice.xml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml
index 545e5676f6b..3bf2f8b6577 100644
--- a/addons/account/views/report_invoice.xml
+++ b/addons/account/views/report_invoice.xml
@@ -246,9 +246,10 @@
Incoterm: -
-
+
+
Scan me with your banking app.
-
+