How yahiaqous/car-rental-system works
This Odoo add-on supports an internal car-booking workflow: users browse available cars, reserve them, and request returns; managers can manage cars and reservations, handle return requests, and mark cars damaged. Reservation records track borrower, car, state, and return date, while user forms expose a borrower-specific reservation list. Core model and wizard behavior is excerpted; view and access-control responsibilities are represented from the README and manifest, but their implementation details were not sampled.
Main entry points: car.py Car Records · car_reserve_wizard.py Reserve Wizard · car_reservation.py Reservation Records · car.xml Car Views
Components 11
Car Catalog
- Car Records
car_rental_system/models/car.py - Car Views
car_rental_system/views/car.xml
Reservations
- Reservation Records
car_rental_system/models/car_reservation.py - Reserve Wizard
car_rental_system/wizards/car_reserve_wizard.py - Wizard View
car_rental_system/wizards/car_reserve_wizard.xml - Reservation Views
car_rental_system/views/car_reservation.xml - User Reservation List
car_rental_system/models/user_form.py
Odoo Interface and Access
- User Form Views
car_rental_system/views/user_form.xml - Groups and Access
car_rental_system/security/ir.model.access.csv
Other components
- Normal User
- Manager
Connections 17
- Normal User → Car Views: browses cars
README.md - Manager → Car Views: manages cars
README.md - Car Views → Car Records: shows details
- Normal User → Car Records: reserves car
car_rental_system/models/car.py - Car Records → Reservation Records: creates reservation
car_rental_system/models/car.py - Car Records → Reserve Wizard: opens for manager
car_rental_system/models/car.py - Manager → Wizard View: submits booking
README.md - Wizard View → Reserve Wizard: invokes wizard
- Reserve Wizard → Reservation Records: creates reservation
car_rental_system/wizards/car_reserve_wizard.py - Reserve Wizard → Car Records: marks rented
car_rental_system/wizards/car_reserve_wizard.py - Reservation Records → Car Records: unreserves car
car_rental_system/models/car_reservation.py - Normal User → User Form Views: views history
README.md - User Form Views → User Reservation List: opens reservation list
- User Reservation List → Reservation Records: counts and filters
car_rental_system/models/user_form.py - Manager → Reservation Views: reviews history
README.md - Manager → Groups and Access: uses manager access
README.md - Normal User → Groups and Access: uses user access
README.md