Skip to content

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

Update order status after fullfilled digital products

Maciej Korycinski087e8e49c98b
diff --git a/saleor/order/utils.py b/saleor/order/utils.py
index 1aca17048c..7d7dfbf09c 100644
--- a/saleor/order/utils.py
+++ b/saleor/order/utils.py
@@ -78,7 +78,10 @@ def automatically_fulfill_digital_lines(order: Order):
fulfillment=fulfillment, order_line=line, quantity=quantity
)
fulfill_order_line(order_line=line, quantity=quantity)
- emails.send_fulfillment_confirmation.delay(order.pk, fulfillment.pk)
+ emails.send_fulfillment_confirmation_to_customer(
+ order, fulfillment, user=order.user
+ )
+ update_order_status(order)
def check_order_status(func):