[ADD] rental_deposit: adding deposit to rental products.#1274
Draft
adpaw-odoo wants to merge 1 commit into
Draft
[ADD] rental_deposit: adding deposit to rental products.#1274adpaw-odoo wants to merge 1 commit into
adpaw-odoo wants to merge 1 commit into
Conversation
ee14089 to
9861912
Compare
|
Hello! |
b3753a6 to
09860e4
Compare
09860e4 to
8123c78
Compare
- Added and fields on to allow per-product deposit configuration - Added on , exposed via config settings - Auto-add/update/delete deposit line on sale order via CRUD overrides - Blocked direct editing or deletion of deposit lines using context guards - Added deposit display on webshop product page with dynamic qty update
8123c78 to
dfb6609
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Task ID- 4485648
Introduced a new custom module that adds deposit configuration on rental products and automatically manages deposit lines on sale orders and the web-shop. This allows businesses to enforce a refundable deposit whenever a rental product is added, both from the back-end and the front-end.
WHY this change is being made:
Currently, when a customer rents a product there is no built-in way to collect or track a deposit amount tied to that rental. Salespersons had to manually add deposit lines every time, which is error-prone and inconsistent. This module automates that process and ensures deposit lines are always present, correctly priced, and protected from accidental edits or deletions.
Technical decisions taken:
require_deposit(Boolean) and 'deposit_amount' on 'product.template' to allow per-product deposit configuration under the Rental Prices tab.