From a6d9f4dca3c85d24f446b4bc7948000b59bfaf00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 21 Jun 2024 14:26:49 +0200 Subject: [PATCH] Allow stripe refund to transition from succeeded to failed For asynchronous charge the refund may fail after being succeeded. #13355 (grafted from 7e6e4b67e5284df713a1022cba6a457d88e7e281) --HG-- branch : 7.0 --- modules/account_payment_stripe/payment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/account_payment_stripe/payment.py b/modules/account_payment_stripe/payment.py index 2839a80fd5..90f1237783 100644 --- a/modules/account_payment_stripe/payment.py +++ b/modules/account_payment_stripe/payment.py @@ -728,6 +728,7 @@ class Refund(Workflow, ModelSQL, ModelView): ('approved', 'processing'), ('processing', 'succeeded'), ('processing', 'failed'), + ('succeeded', 'failed'), ('approved', 'draft'), )) cls._buttons.update({