Daily updates from Odoo
Wednesday, October 22, 2025
1 change
Resolved issues and error corrections
This fixes stock valuation when products are bought or moved in a different unit of measure than their base unit. It prevents understated inventory values and incorrect accounting entries, such as valuing 1 kg as if it were 1 gram.
Original PR description
Steps to reproduce the bug:
- Create a storable product “P1”:
- UoM: Gram
- Add a vendor with UoM in Kg
- Standard price: $10 per Gram
- Create a delivery order:
- 1 Kg of P1
- Validate the delivery
Problem:
The stock move value is computed as $10 instead of $10,000, which leads to incorrect journal items and stock valuation.
Solution:
Use qty in product's UoM instead of `quantity`
when computing the move value.
opw-5105260