Skip to content
Snippets Groups Projects
Commit de6e8133 authored by oco-odoo's avatar oco-odoo
Browse files

[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#61877

Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent de14be49
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment