[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 <smetl@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user