diff --git a/pms/models/pms_room_closure_reason.py b/pms/models/pms_room_closure_reason.py index 608f7ae792..07a5318674 100644 --- a/pms/models/pms_room_closure_reason.py +++ b/pms/models/pms_room_closure_reason.py @@ -26,3 +26,9 @@ class RoomClosureReason(models.Model): help="Explanation of the reason for closing a room", translate=True, ) + active = fields.Boolean( + default=True, + help="Uncheck to archive the room closure reason and hide it" + " from selection lists without removing the historical records" + " that already reference it.", + ) diff --git a/pms/views/pms_room_closure_reason_views.xml b/pms/views/pms_room_closure_reason_views.xml index d99f1be7d9..a59a375bf1 100644 --- a/pms/views/pms_room_closure_reason_views.xml +++ b/pms/views/pms_room_closure_reason_views.xml @@ -6,6 +6,13 @@
+ + + + pms.room.closure.reason.search + room.closure.reason + + + + + + + + Room Closure Reason room.closure.reason tree,form +