Friday, April 15, 2022
1 change
New functionality added to Odoo
Customers can now rent products directly from the online store by choosing rental start and end dates, with prices calculated for the selected period. Store managers can set unavailable rental days, minimum rental durations, show availability, and support rentals from wishlist, comparison, and product configurator flows.
Original PR description
This PR adds rent management on eCommerce. Purpose ====== Being able to rent on e-commerce. Specification ========= - eCommerce users are now able to input start and end dates to rent products. The…
This PR adds rent management on eCommerce. Purpose ====== Being able to rent on e-commerce. Specification ========= - eCommerce users are now able to input start and end dates to rent products. The price of the product is computed on the basis of the start and end dates introduced by the user. - eCommerce administrator are now able to configure days where rental cannot be processed (e.g. on Saturday and Sunday) and a minimal rental duration. - eCommerce wishlist or comparison users are now able to input the rental period in their dedicated wishlist or comparison page. - eCommerce stock users are now able to see the stock availability of the product for the selected rental period. - eCommerce users can now add the rental optional products to their cart with the start and end dates of the rental period taken from their initial rental period on the basis product. Technical choices ============= - A rental product which is salable is always considered as rent-able unless no product pricing is defined for the website pricelist. - The quick add to cart button is disabled on rental products to ensure the start and end date are always given to create the rental order line. - The price computation is factorized in the sale_temporal module in order to benefit from the cart_update implementation (i.e. the calls to get_product_price on the pricelist) and avoid a workflow duplication. The only usage of the pricelist is its currency and not the rules. - The update temporal prices specific method is now useless since all the computation is now made through the `_compute_price_rule` method. - The rental templates are not updatable through the editor since the input name and place are important. task-2382027 See https://github.com/odoo/odoo/pull/83359