odoo/tutorials#1268
Created by Ayush Khubchandani (aykhu)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 4s)
- ci/tutorial: (runtime 111s)
- label
- odoo-dev:19.0-renting-deposit-aykhu
- head
- 73a3fb90f401fb9890cd0951b0138addde718ee4
| odoo/tutorials | |
|---|---|
| 19.0 | #1268 missing r+ |
| master |
[ADD] sale_rental_deposit: introduce deposit mechanism for rental products
Rental workflows currently lack a proper way to manage security deposits, which are a common requirement for renting high-value or damage-sensitive products.
In the absence of a standard mechanism, users rely on manual workarounds such as adding extra order lines or handling deposits outside the system. This leads to inconsistent processes, higher risk of errors, and no clear link between the rented product and its associated deposit. It also impacts the website experience, as customers have no visibility of required deposits before placing an order.
This PR introduces a structured and configurable deposit mechanism to handle this scenario in a consistent and automated way across both backend and frontend flows.
Key Changes
- Add a global deposit product configuration in settings
- Allow defining deposit requirement and per-unit amount on products
- Automatically create and manage deposit lines on sale/rental orders
- Ensure deposit amounts stay in sync with product quantities
- Extend the behavior to the website, displaying deposit details to customers
Result
- Deposits are always applied when required
- No manual adjustments needed
- Clear traceability between rental items and deposits
- Improved user and customer experience