Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Recalculate total after modifying quantity
Artur Smęt9e0c70ac77e9
diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.pyindex e96a6c2383..f5258b83a0 100644--- a/saleor/dashboard/order/forms.py+++ b/saleor/dashboard/order/forms.py@@ -152,6 +152,7 @@ class ChangeQuantityForm(forms.ModelForm):delta = quantity - self.initial_quantityStock.objects.allocate_stock(stock, delta)self.instance.change_quantity(quantity)+ self.instance.delivery_group.order.recalculate()class ShipGroupForm(forms.ModelForm):