Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
fix select_for_update outside transaction (#10843)
Jakub280754dae95a
diff --git a/saleor/order/actions.py b/saleor/order/actions.pyindex c93c26aa19..e19192c3d6 100644--- a/saleor/order/actions.py+++ b/saleor/order/actions.py@@ -353,8 +353,8 @@ def cancel_fulfillment(Return products to corresponding stocks if warehouse was defined."""- fulfillment = Fulfillment.objects.select_for_update().get(pk=fulfillment.pk)with traced_atomic_transaction():+ fulfillment = Fulfillment.objects.select_for_update().get(pk=fulfillment.pk)events.fulfillment_canceled_event(order=fulfillment.order, user=user, app=app, fulfillment=fulfillment)