| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Maintenance (maintenance)
• Discuss (mail) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 491 |
| Technical Name |
rental_sale_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) • Invoicing (account) |
| Community Apps Dependencies | Show |
| Lines of code | 491 |
| Technical Name |
rental_sale_maintenance |
| License | AGPL-3 |
| Website | https://github.com/kurniawanlucky/odoo_addons |
Rental Sale Maintenance
Prevent rental and maintenance time conflicts
Rental Sale Maintenance is an integration module that ensures
rental products cannot be rented and maintained at the same time.
It acts as a bridge between
rental_sale_product and rental_maintenance.
The module automatically checks overlapping schedules between rental sale orders and maintenance requests, ensuring resource availability and preventing conflicts.
Conflict Prevention Rules
- Rental â Maintenance: A product already rented cannot be selected for maintenance if rental dates overlap.
- Maintenance â Rental: A product under maintenance cannot be selected in new rental orders during the maintenance period.
Technical Overview
The module extends both sale.order.line and maintenance.request:
- Checks active rentals before confirming maintenance requests.
- Checks active maintenances before confirming rental sale orders.
- All datetime comparisons are done in UTC; user-facing warnings are shown in the user's timezone.
How It Works
Example:
Product: Bike A
Rental: 2025-10-16 09:00 â 2025-10-17 09:00
Maintenance: 2025-10-16 08:00 â 2025-10-16 12:00
Result:
When scheduling maintenance, Odoo shows:
"Bike A is currently rented from 2025-10-16 09:00 to 2025-10-17 09:00.
Maintenance cannot be scheduled in this period."
Module Dependencies
- rental_sale_product â manages rental sales and durations
- rental_maintenance â handles maintenance requests for rental items
This module requires both dependencies to be installed first.
Installation Steps
- Install rental_product_base.
- Install rental_sale_product.
- Install rental_maintenance.
- Finally, install rental_sale_maintenance.
Recommended Features
- Smart button on rental product showing current rentals and maintenances.
- Unified calendar view to see both rental and maintenance events.
- Optional buffer time between rentals for cleaning or service.
Summary
Rental Sale Maintenance provides a critical scheduling safeguard between rental and maintenance operations, ensuring no overlapping resource use. Itâs an essential module for businesses managing high-value assets with rental and upkeep requirements.
Please log in to comment on this module