odoo/tutorials#1076
Created by Utkarsh Rameshbhai Patel (utpat)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 26s)
- ci/tutorial: (runtime 88s)
- label
- odoo-dev:19.0-deposit_rental_app-utpat
- head
- 7495d2dbd81a81c40e61887094ac4ed27299a445
| odoo/tutorials | |
|---|---|
| 19.0 | #1076 missing r+ |
| master |
[ADD] deposit_rental: add a deposit feature to the Rental application.
Business Context:
The deposit feature is required to secure rental transactions by collecting a refundable amount from customers. This helps protect the company against damage, loss, or delayed returns of rented items and ensures customer accountability.
Technical changes:
1. add deposit product in rental settings
2. add Deposit Configuration Fields in product page
- Added requires_deposit (Boolean) and deposit_amount (Float) fields on the product.template model to define whether a rental product requires a deposit and the deposit amount per unit.
3. Deposit Line Identification
- Added is_deposit_line Boolean field on sale.order.line
4. Automatic Deposit Line Creation
5. Deposit Line Protection
- Prevented manual editing of deposit lines by overriding the write method.
- Prevented manual deletion of deposit lines by overriding the unlink method.
6. Add deposit amount on product website page
- when user change quantity of product then deposit amount also update