diff --git a/kfet/views.py b/kfet/views.py index 844ed8ce..26fe9164 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -1652,6 +1652,8 @@ def order_to_inventory(request, pk): stock_old = article.stock, stock_new = article.stock + q_received) article.stock += q_received + if q_received > 0: + article.is_sold = True article.save() messages.success(request, "C'est tout bon !") return redirect('kfet.order')