[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:
@@ -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 ===#
|
||||
|
||||
|
||||
Reference in New Issue
Block a user