Monday, September 7, 2026
1 change · saas-19.4
Enhancements to existing features
The rental stock integration now reuses an existing shared rule for identifying rented quantities. This makes it easier for other add-ons to customize rental behavior consistently, with no expected change for day-to-day users.
Original PR description
There is already an existing hook on product.product ([sale_renting.models.product_product.ProductProduct._get_qty_in_rent_domain](https://github.com/acsone/enterprise/blob/2cd105c93bb7199a5ecea67a919a7ab5d9251cbf/sale_renting/models/product_product.py#L24)), use it to get the domain, so it can be inherited by other modules.
While the upstream method uses `('product_id', 'in', self.ids)` instead of this one's `('product_id', '=', self.id)`, this isn't an issue since there's a `self.ensure_one()` just above.
Forward-Port-Of: odoo/enterprise#130090
Forward-Port-Of: odoo/enterprise#129191