Manage Campus Facilities and Hostel Allocations
Manage Campus Facilities and Hostel Allocations
Create and manage campus facilities including hostels, rooms, and allocate students to accommodation with billing integration.
Time: 5–10 minutes per allocation Module: OpenEduCat Campus Enterprise Permissions: Campus User or Campus Manager
Prerequisites
- Facility types configured
- Student or staff records exist
- Product catalog for billing (optional)
- Access to Campus Management menu
Overview
The Campus Facility system enables:
- Hierarchical facility structure (Hostel → Room → Bed)
- Capacity management with overbooking prevention
- Time-based allocations for accommodation
- Invoice generation for facility charges
- Calendar view for allocation planning
Facility Hierarchy
Campus├── Boys Hostel (Parent Facility)│ ├── Room 101 (Child Facility)│ ├── Room 102 (Child Facility)│ └── Room 103 (Child Facility)├── Girls Hostel (Parent Facility)│ └── Rooms...├── Auditorium (Standalone)└── Sports Ground (Standalone)Steps
1. Configure Facility Types
- Navigate to Campus → Configuration → Facility Type
- Click New
- Enter facility classification:
| Field | Action |
|---|---|
| Name | Type name (e.g., “Hostel”, “Hall”, “Ground”) |
| Code | Short code (e.g., “HO”, “HA”, “GD”) |
- Click Save
Default Types:
- Hostel (ho)
- Ground (gd)
- Hall (ha)
- Garden (ga)
2. Create Parent Facility
- Navigate to Campus → Facilities → Facility
- Click New
- Complete the form:
| Field | Action |
|---|---|
| Name | Facility name (e.g., “Boys Hostel”) |
| Code | Unique code (e.g., “BH”) |
| Facility Type | Select type (e.g., Hostel) |
| Capacity | Maximum occupancy |
| Parent Facility | Leave empty for top-level |
- Click Save
3. Create Child Facilities (Rooms)
- Open the parent facility record
- In Sub Facilities section, click Add a line
- For each room:
| Field | Action |
|---|---|
| Name | Room identifier (e.g., “Room 101”) |
| Facility Type | Select type |
| Capacity | Room capacity |
-
Or create rooms from facility list:
- Click New
- Set Parent Facility to the hostel
- Complete remaining fields
-
Click Save
4. Allocate Facility to Person
- Navigate to Campus → Facilities → Facility Allocations
- Click New
- Complete the allocation:
| Field | Action |
|---|---|
| Person | Select student or staff partner |
| Facility | Select the room/facility |
| From Date | Allocation start date |
| To Date | Allocation end date |
| Product | Select billing product (e.g., “Hostel Charge”) |
- Click Save
- System validates capacity availability
5. Generate Invoice
-
Open an allocation record
-
Click Create Invoice button
-
Invoice wizard opens with:
- Partner (pre-filled)
- Product (pre-filled)
- Date range (pre-filled)
-
Click Create
-
Invoice created and linked to allocation
Calendar View
The allocation calendar provides visual planning:
-
Navigate to Facility Allocations
-
Select Calendar view
-
View allocations by:
- Color-coded by facility
- Date range display
- Partner name as event title
-
Click on allocation to view/edit details
Field Reference
Facility Model (op.campus.facility)
| Field | Technical Name | Type | Required | Description |
|---|---|---|---|---|
| Name | name | Char(64) | Yes | Facility name |
| Code | code | Char | Yes | Unique identifier |
| Facility Type | facility_type_id | Many2one | Yes | Classification |
| Capacity | capacity | Integer | No | Maximum occupancy |
| Parent | parent_id | Many2one | No | Parent facility |
| Children | child_ids | One2many | No | Sub-facilities |
| Allocations | facility_allocation_lines | One2many | No | Current allocations |
| Full Name | complete_name | Char | Computed | Hierarchical name |
| Active | active | Boolean | No | Archive status |
Facility Type Model (op.facility.type)
| Field | Technical Name | Type | Required | Description |
|---|---|---|---|---|
| Name | name | Char(64) | Yes | Type name |
| Code | code | Char(64) | Yes | Short code |
| Active | active | Boolean | No | Archive status |
Allocation Model (op.facility.allocation)
| Field | Technical Name | Type | Required | Description |
|---|---|---|---|---|
| Person | partner_id | Many2one | Yes | Allocated person |
| Facility | facility_id | Many2one | Yes | Room/facility |
| From Date | from_date | Datetime | Yes | Start date |
| To Date | to_date | Datetime | No | End date |
| Product | product_id | Many2one | No | Billing item |
| Invoice | invoice_id | Many2one | No | Generated invoice |
| Active | active | Boolean | No | Archive status |
Capacity Validation
The system prevents overbooking:
-
When creating allocation, system checks:
- Facility capacity
- Existing allocations in date range
- Available slots
-
If capacity exceeded:
- ValidationError: “Facility not available in those dates”
-
Validation formula:
existing_allocations >= facility.capacity
Search and Filter Options
Facility List
- Search by: Name, Capacity
- Filter by: Archived, Facility Type
- Group by: Facility Type
Allocations
- Search by: Facility, From Date
- Filter by: Archived, Person
- Group by: Person, Facility
Reporting Views
Graph View
- Facility analysis by type
- Allocation counts
Pivot View
- Cross-tabulation by facility and person
- Date-based analysis
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Capacity exceeded error | Room fully allocated | Choose different dates or room |
| Cannot create invoice | Missing product | Configure billing product |
| Facility not showing | Archived | Unarchive in configuration |
| Duplicate code error | Code already exists | Use unique facility code |
| Invoice account error | Missing income account | Configure product accounting |
Best Practices
- Hierarchical structure: Create parent facilities before rooms
- Accurate capacity: Set realistic occupancy limits
- Date management: Close ended allocations promptly
- Regular billing: Generate invoices periodically
- Archive old records: Keep database clean
Billing Products
Configure products for facility charges:
| Product | Type | Use Case |
|---|---|---|
| Hostel Charge | Service | Monthly accommodation |
| Campus Charge | Service | Facility usage fees |
| Room Deposit | Service | Security deposit |
Security Notes
| Role | Capabilities |
|---|---|
| Campus User | Create, read, edit facilities and allocations |
| Campus Manager | Full CRUD including delete, invoice creation |
Faculty members automatically receive Campus User permissions.