# elamathi30/room_booking_module architecture

> Architecture diagram of the GitHub repository elamathi30/room_booking_module, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elamathi30/room_booking_module
- Repository: https://github.com/elamathi30/room_booking_module

## Overview

This Odoo add-on manages room and equipment bookings from resource setup through validation, lifecycle changes, and reminders. Users work through booking and resource screens; the booking model checks resource availability and conflicts, while a cancellation wizard records required reasons. The README also documents calendar scheduling, access controls, and reminder configuration. Several XML and security files are represented by their exact tree paths but were not excerpted, so those relationships rely on README evidence rather than inspected implementation details.

Main entry points: [`room_booking/models/booking.py`](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/booking.py) (Booking model), [`room_booking/models/resource.py`](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/resource.py) (Resource model), [`room_booking/security/ir.model.access.csv`](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/security/ir.model.access.csv) (Model permissions), [`room_booking/views/booking_views.xml`](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/booking_views.xml) (Booking screens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_booking_ui["Booking screens<br/>[booking_views.xml]"]
  node_resource_ui["Resource screens<br/>[resource_views.xml]"]
  node_schedule["Booking schedule<br/>[booking_views.xml]"]
end

subgraph group_domain["Booking domain"]
  node_booking["Booking model<br/>[booking.py]"]
  node_resource["Resource model<br/>[resource.py]"]
  node_cancel_wizard["Cancellation wizard<br/>[cancel_wizard.py]"]
end

subgraph group_operations["Operations and access"]
  node_access_rules["Access rules<br/>[security.xml]"]
  node_model_access["Model permissions"]
end

subgraph group_integrations["Odoo integrations"]
  node_odoo_store[("Odoo persistence")]
  node_sequence["Booking sequence<br/>[sequence.xml]"]
  node_reminder_job["Reminder schedule<br/>[reminder_cron.xml]"]
  node_mail_template["Reminder template<br/>[mail_template.xml]"]
end

node_user(("Odoo user"))

node_user -->|"uses"| node_booking_ui
node_user -->|"uses"| node_resource_ui
node_booking_ui -->|"manages"| node_booking
node_resource_ui -->|"manages"| node_resource
node_schedule -->|"displays"| node_booking
node_booking -->|"checks availability"| node_resource
node_booking -->|"opens"| node_cancel_wizard
node_cancel_wizard -->|"records cancellation"| node_booking
node_booking -->|"requests reference"| node_sequence
node_reminder_job -->|"schedules reminders"| node_booking
node_booking -->|"sends reminder"| node_mail_template
node_access_rules -->|"restricts records"| node_booking
node_model_access -->|"grants permissions"| node_booking
node_model_access -->|"grants permissions"| node_resource
node_booking -->|"persists records"| node_odoo_store
node_resource -->|"persists records"| node_odoo_store

click node_booking_ui "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/booking_views.xml"
click node_resource_ui "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/resource_views.xml"
click node_schedule "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/booking_views.xml"
click node_booking "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/booking.py"
click node_resource "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/resource.py"
click node_cancel_wizard "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/cancel_wizard.py"
click node_sequence "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/data/sequence.xml"
click node_reminder_job "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/data/reminder_cron.xml"
click node_mail_template "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/data/mail_template.xml"
click node_access_rules "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/security/security.xml"
click node_model_access "https://github.com/elamathi30/room_booking_module/blob/main/room_booking/security/ir.model.access.csv"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_booking_ui,node_resource_ui,node_schedule,node_user toneBlue
class node_booking,node_resource,node_cancel_wizard toneAmber
class node_access_rules,node_model_access toneMint
class node_odoo_store,node_sequence,node_reminder_job,node_mail_template toneRose
```

## Components

### User experience

- [Booking screens](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/booking_views.xml): `room_booking/views/booking_views.xml`
- [Resource screens](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/resource_views.xml): `room_booking/views/resource_views.xml`
- [Booking schedule](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/views/booking_views.xml): `room_booking/views/booking_views.xml`

### Booking domain

- [Booking model](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/booking.py): `room_booking/models/booking.py`
- [Resource model](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/resource.py): `room_booking/models/resource.py`
- [Cancellation wizard](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/models/cancel_wizard.py): `room_booking/models/cancel_wizard.py`

### Operations and access

- [Access rules](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/security/security.xml): `room_booking/security/security.xml`
- [Model permissions](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/security/ir.model.access.csv): `room_booking/security/ir.model.access.csv`

### Odoo integrations

- **Odoo persistence**
- [Booking sequence](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/data/sequence.xml): `room_booking/data/sequence.xml`
- [Reminder schedule](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/data/reminder_cron.xml): `room_booking/data/reminder_cron.xml`
- [Reminder template](https://github.com/elamathi30/room_booking_module/blob/main/room_booking/data/mail_template.xml): `room_booking/data/mail_template.xml`

### Other components

- **Odoo user**

## Connections

- Odoo user → Booking screens: uses (evidence: `README.md`)
- Odoo user → Resource screens: uses (evidence: `README.md`)
- Booking screens → Booking model: manages (evidence: `README.md`)
- Resource screens → Resource model: manages (evidence: `README.md`)
- Booking schedule → Booking model: displays (evidence: `README.md`)
- Booking model → Resource model: checks availability (evidence: `room_booking/models/booking.py`)
- Booking model → Cancellation wizard: opens (evidence: `room_booking/models/booking.py`)
- Cancellation wizard → Booking model: records cancellation (evidence: `room_booking/models/cancel_wizard.py`)
- Booking model → Booking sequence: requests reference (evidence: `room_booking/models/booking.py`)
- Reminder schedule → Booking model: schedules reminders (evidence: `README.md`)
- Booking model → Reminder template: sends reminder (evidence: `README.md`)
- Access rules → Booking model: restricts records (evidence: `README.md`)
- Model permissions → Booking model: grants permissions (evidence: `README.md`)
- Model permissions → Resource model: grants permissions (evidence: `README.md`)
- Booking model → Odoo persistence: persists records (evidence: `README.md`)
- Resource model → Odoo persistence: persists records (evidence: `README.md`)
