Friday, February 7, 2025
2 changes · master
Resolved issues and error corrections
Companies can now view and update the rental location used for rental order replenishment. This prevents users from being blocked after a rental location is deleted, and also restores missing rental locations automatically during setup.
Original PR description
### Problem Before this commit, if the customer deletes the rental location they would be blocked from creating a rental order as it is necessary for replenishment rules. The issue becomes critical because, once deleted, the rental location cannot be set to the company functionally given the field is not present in the view. ### Solution To fix this, this commit adds `Rental Settings` making the `rental_loc_id` field visible in the `res_company` view, allowing customers to select their desired rental location and resolve the issue independently. Additionally, we call `create_missing_rental_location()` in the `post_init_hook` to ensure that the field is correctly set for all companies.  - opw-3973957 - opw-4488182 - opw-4545985
This update fixes how units of measure are handled when orders are created from replenishment and improves how conversion ratios are shown against a product's base unit. This helps users avoid quantity mistakes and better understand unit conversions in purchasing approval and quality control flows.