diff --git a/src/genlab_bestilling/models.py b/src/genlab_bestilling/models.py index 7320a756..7bcaeb24 100644 --- a/src/genlab_bestilling/models.py +++ b/src/genlab_bestilling/models.py @@ -319,6 +319,7 @@ def clone(self) -> None: def to_draft(self) -> None: self.status = Order.OrderStatus.DRAFT + self.is_seen = False self.confirmed_at = None self.save() diff --git a/src/staff/templatetags/order_tags.py b/src/staff/templatetags/order_tags.py index fe650dc5..d340b3c4 100644 --- a/src/staff/templatetags/order_tags.py +++ b/src/staff/templatetags/order_tags.py @@ -168,6 +168,7 @@ def assigned_orders_table(context: dict) -> dict: Order.OrderStatus.DELIVERED, ], responsible_staff=user, + is_seen=True, ) .select_related("genrequest") .annotate(