Thursday, October 19, 2023
1 change · master
Resolved issues and error corrections
Rental products added to an empty cart now use the correct rental dates before checking stock availability. This prevents customers from proceeding with unavailable rentals and disables checkout when the cart cannot be fulfilled for the selected dates.
Original PR description
Before this commit, when adding a rental storable product to an empty cart, the check of stock availability was wrong because no dates were specified. This commit makes sure the cart has dates when adding a rental product to it. The check for the rental availabilities always use the dates from the cart. Therefore, the arguments of `_is_valid_renting_dates` are removed. task-3537684 See also: https://github.com/odoo/odoo/pull/137844