Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Allow reset shipping mathod for draft order

fowczarekfbb1d98c00ed
diff --git a/saleor/graphql/order/mutations/orders.py b/saleor/graphql/order/mutations/orders.py
index 9f316bdcb2..3ef43a4d94 100644
--- a/saleor/graphql/order/mutations/orders.py
+++ b/saleor/graphql/order/mutations/orders.py
@@ -161,7 +161,7 @@ class OrderUpdateShipping(BaseMutation):
order = cls.get_node_or_error(info, id, errors, 'id', Order)
if not input['shipping_method']:
- if order.is_shipping_required():
+ if not order.is_draft() and order.is_shipping_required():
cls.add_error(
errors, 'shippingMethod',
'Shipping method is required for this order.')