[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) <anv@odoo.com>
This commit is contained in:
Trinh Ngoc Hung
2023-10-18 16:52:02 +00:00
parent dff6a0fe55
commit 763002a841
+1 -1
View File
@@ -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 ===#