Bulk order-refund: Create log entries (Z#23203462) (#5357)

This commit is contained in:
Raphael Michel
2025-08-19 12:09:23 +02:00
committed by GitHub
parent 7e3f6df945
commit 7cdccc7d8e
2 changed files with 5 additions and 0 deletions

View File

@@ -373,6 +373,10 @@ class OrderOverpaidRefundBulkActionView(BaseOrderBulkActionView):
comment=_("Refund for overpayment"),
provider=payment.provider
)
instance.log_action('pretix.event.order.refund.created', {
'local_id': refund.local_id,
'provider': refund.provider,
}, user=self.request.user)
payment.payment_provider.execute_refund(refund)
return True
except (ValueError, PaymentException):