From 6abde401bfc159116d2f33ffe6289f5dc0dc180e Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Tue, 17 Nov 2020 15:54:40 +0000 Subject: [PATCH] [FIX] account: also support QRR on payment form for Swiss QR-codes When displaying a QR-code on the account.payment form view, we now pass its communication as both structured and unstructured communication, letting the QR-code generator parse it needed. This allows supporting QR-IBANs and QRR communications for Swiss QR-codes. closes odoo/odoo#61891 X-original-commit: de6e81337d168ef296f7b0aa46aedbea1ea7a82d Signed-off-by: Laurent Smet --- addons/account/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 8a26d5d8eec..2dd1f9cef83 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -409,7 +409,7 @@ class AccountPayment(models.Model): and pay.currency_id: if pay.partner_bank_id: - qr_code = pay.partner_bank_id.build_qr_code_url(pay.amount, pay.ref, None, pay.currency_id, pay.partner_id) + qr_code = pay.partner_bank_id.build_qr_code_url(pay.amount, pay.ref, pay.ref, pay.currency_id, pay.partner_id) else: qr_code = None