| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Maintenance (maintenance)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 158 |
| Technical Name |
rental_product_maintenance |
| License | AGPL-3 |
| Website | https://github.com/kurniawanlucky/odoo_addons |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Maintenance (maintenance)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 158 |
| Technical Name |
rental_product_maintenance |
| License | AGPL-3 |
| Website | https://github.com/kurniawanlucky/odoo_addons |
Rental Maintenance Integration
Manage Maintenance for Rental Products in Odoo
This module integrates rental products with Odooâs built-in Maintenance app. It ensures that rental products (like bikes, vehicles, or equipment) cannot be rented while they are scheduled for maintenance. It also enhances maintenance records by displaying the rental product in the name and in calendar views.
Key Features
- Link maintenance requests to rental products using
rental_product_id - Automatically prevent selecting a rental product that is under active maintenance
- Override
name_get()to show rental product in the maintenance request name - Display rental product in calendar events
- Convert UTC maintenance times to user timezone in warnings
Example Maintenance Request Fields
| Field | Description |
|---|---|
| rental_product_id | Rental product associated with this maintenance request |
| schedule_date | Maintenance start date and time (UTC stored) |
| duration | Estimated maintenance duration in hours |
| maintenance_end_datetime | Computed field: schedule_date + duration |
| name | Automatically shows maintenance name with rental product, e.g., Full Service (Bike A) |
Active Maintenance Check
When creating a maintenance request, the system prevents selecting a rental product
that already has an active maintenance scheduled.
Example: Bike A is under maintenance from 2025-10-15 08:00 to 2025-10-15 10:00.
Attempting to create another maintenance during this period will show a warning in the user's timezone.
Calendar View Enhancements
- Maintenance requests linked to rental products show the product name in calendar events
- Color-code events by rental product (optional)
- Filter calendar to show only rental product maintenance
Example displayed in calendar:
- Full Service (Bike A)
- Wash (Bike B)
Related Modules
- rental_product_base â provides product rental core (durations, pricing, availability)
- rental_sale_product â enables rentals to be sold via Sales Orders
- rental_sale_delivery â Adds delivery carriers for rental items
Please log in to comment on this module