Monday, May 4, 2026
1 change · 17.0
Resolved issues and error corrections
This update fixes an issue where the return quantity displayed in the stock return wizard was incorrect when the product's unit of measure differed from the unit of measure used in the original delivery order. The system now correctly converts quantities to the product's UoM, ensuring accurate return calculations. This improves the reliability of inventory management.
Original PR description
Steps to reproduce: - Create a storable product "P1" with UoM set to KG - Update on-hand quantity to 1 KG - Create a delivery order for 100g of P1 and validate it - Click the Return button Problem: The return wizard displayed 100 KG instead of 0.1 KG. The `uom_id` field on `stock.return.picking.line` is a non-stored related field pointing to `product_id.uom_id`. The quantity was taken directly from the stock move (expressed in the move's UoM) without being converted to the product's UoM before being passed to the wizard. Solution: Convert the quantity from the move's UoM to the product's UoM. opw-6113515