From a0940e4db0bbc3c6ed31d97bfbc5ddb73c35356a Mon Sep 17 00:00:00 2001 From: Mehdi Bendali Hacine Date: Thu, 13 Jul 2023 07:54:17 +0000 Subject: [PATCH] [FIX] l10n_sa: Fix QR code generation on Invoice report Sometimes, when the base64 data used to render the QR code is too long, some of the special characters included might be wrongly encoded in the url passed to the /report/barcode route. To avoid this, we format the QR code string through the quote_plus method to make sure it's always properly encoded X-original-commit: 4b5b0caa75302c945d9f762526f1939783ef3250 Part-of: odoo/odoo#128429 --- addons/l10n_sa/views/report_invoice.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_sa/views/report_invoice.xml b/addons/l10n_sa/views/report_invoice.xml index 60fcec78eef..c012410fc0e 100644 --- a/addons/l10n_sa/views/report_invoice.xml +++ b/addons/l10n_sa/views/report_invoice.xml @@ -24,7 +24,7 @@

+ t-att-src="'/report/barcode/?barcode_type=%s&value=%s&width=%s&height=%s'%('QR', quote_plus(o.l10n_sa_qr_code_str), 200, 200)"/>