From 763002a841ff7f3ab7fc72535a0cc8a9c84af24d Mon Sep 17 00:00:00 2001 From: Trinh Ngoc Hung Date: Wed, 18 Oct 2023 16:52:02 +0000 Subject: [PATCH] [FW][FIX] payment: pass `amount_to_refund` as a kwarg I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#138918 Forward-port-of: odoo/odoo#138460 Signed-off-by: Antoine Vandevenne (anv) --- addons/payment/models/payment_transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment/models/payment_transaction.py b/addons/payment/models/payment_transaction.py index 47df8f02493..4453a13b464 100644 --- a/addons/payment/models/payment_transaction.py +++ b/addons/payment/models/payment_transaction.py @@ -311,7 +311,7 @@ class PaymentTransaction(models.Model): raise ValidationError(_("Only confirmed transactions can be refunded.")) for tx in self: - tx._send_refund_request(amount_to_refund) + tx._send_refund_request(amount_to_refund=amount_to_refund) #=== BUSINESS METHODS - PAYMENT FLOW ===#