This module is developed to manage room reservations within a company. It allows employees to book meeting rooms and administrators to manage room availability and confirm reservations.
- PyCharm Community Edition
- Python 3.10.11
- Visual Studio Build Tools 2022
- Install the required Python version and set it as the default interpreter in PyCharm.
- Clone the Odoo 17 repository:
git clone https://www.github.com/odoo/odoo --depth 1 --branch 17.0 --single-branch odoo17
- Install the necessary dependencies from the
requirements.txt
file:
pip install -r requirements.txt
- Create a superuser in pgAdmin4 named
odoo17
with passwordodoo17
and all privileges. - Configure the
odoo.conf
file with the absolute paths of the addons folder and the login of the superuserodoo17
. - Set the
odoo17
folder as the root directory and launch the application. - Go to
localhost:8069
to create a new database namedadmin
.
The module adds the following functionalities:
- Room Management: Define and manage meeting rooms.
- Reservation Management: Employees can book rooms, and administrators can confirm or cancel reservations.
- Database Integration: Tables for rooms and reservations are created and managed.
- Role-based Access: Different roles for employees and administrators with specific permissions.
- Automated Processes: Reservation and confirmation processes are automated.
- Add a folder called
custom_addons
with the following structure:
models/
: Contains the Python models for the module.views/
: Contains the XML files for the module's interface.security/
: Contains the security rules for the module.__manifest__.py
: The manifest file describing the module.
- Update the
odoo.conf
file to include thecustom_addons
folder in theaddon_path
. - Define models for rooms (
salle.py
) and reservations (reservation.py
). - Create views for rooms and reservations (
salle_view.xml
andreservation_view.xml
). - Update the security rules in
ir.model.access.csv
to grant appropriate access rights to the module. - Add the created files to the
__manifest__.py
file.
- Launch the application and navigate to the Room Booking module.
- Test adding rooms and making reservations.
- Verify that the constraints are enforced, such as the end date being after the start date and the room being available for the requested time.
- Asma Hachaichi