tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

[ADD] deposit_rental: added deposit feature in the rental app

Open vpan-odoo opened this issue 9 months ago • 1 comments

Steps to reproduce

  1. For internal users
  • Install deposit_rental module (depends on enterprise app sale_renting)
  • Open Rental > Configuration > Settings under deposit settings select deposit product
  • Open Products > From the kanban view select any product you want to add deposit
  • Opens the form view > Rental Prices > Tick the Require Deposit
  • The new field amount will be appear this amount is computed based on the price of the product we selected in the deposit settings
  • Now when we add a rental product with deposit require in Order it will add another order line of deposit
  • If we update the rental product quantity the deposit amount will also update accordingly
  1. For Portal Users
  • They have to select any rental product from the shop, and it will auto add deposit in the cart with description deposit for <product_name>
  • You're not able to remove deposit product from the cart as it is require for the above product

Purpose of changes

  • Right now we are not able to take any amount as deposit for the rental products, after implementing this module we are able to take the deposit amount from the user

Changes

  • To address this problem we did the following changes
  1. Introduced a new field in the Rental Setting named deposit, user can configure here the product he want to add as a deposit
  2. Introduced two new fields in product form view under rental prices tab, if deposit require is ticked the deposit amount will be calculated based on the price defined in rental setting page
  3. We also update the sale order line, if the rental product with deposit enabled is added create another line of the product configured under the Rental Setting page.
  4. For the portal users, in the product (rental + deposit) we have added one widget says deposit required this amount will auto update based on the quantity
  5. Also, user is not able to remove the deposit product from the cart if the deposit required rental product is there in the cart to make sure that user must pay the deposit amount.

Task: 4619438

vpan-odoo avatar Mar 04 '25 13:03 vpan-odoo

Pull request status dashboard

robodoo avatar Mar 04 '25 13:03 robodoo