Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Do not check if should cancel order when group has not been removed
Anna Siwik7a6b56d4ea28
diff --git a/saleor/order/utils.py b/saleor/order/utils.pyindex c826bea5aa..1924b38c2a 100644--- a/saleor/order/utils.py+++ b/saleor/order/utils.py@@ -175,11 +175,10 @@ def change_order_line_quantity(line, new_quantity):if not line.delivery_group.get_total_quantity():line.delivery_group.delete()-- order = line.delivery_group.order- if not order.get_lines():- order.change_status(OrderStatus.CANCELLED)- order.create_history_entry(- status=OrderStatus.CANCELLED, comment=pgettext_lazy(- 'Order status history entry',- 'Order cancelled. No items in order'))+ order = line.delivery_group.order+ if not order.get_lines():+ order.change_status(OrderStatus.CANCELLED)+ order.create_history_entry(+ status=OrderStatus.CANCELLED, comment=pgettext_lazy(+ 'Order status history entry',+ 'Order cancelled. No items in order'))