-
- Downloads
[FIX] stock_account: fix rounding error
Steps to reproduce: - Define the decimal accuracy for the "Product Price" to 5 - Create a product with "cost = 0.00875" - On-hand product = 10'000 - Change the cost to "0.00975" Issue: In Inventory valuation, for the product you will have two layers valued at: - 87.5 - 12.5 Instead of: - 87.5 - 10 Cause: We round with currency precision Solution: Use the "Product Price" decimal precision as it is the case when we define a "standard_price" https://github.com/odoo/odoo/blob/4c7ef5673b8fc28bf7fe2bc36fe2450987f15a28/addons/product/models/product.py#L110-L112 opw-2724975 closes odoo/odoo#93192 Signed-off-by:William Henrotin (whe) <whe@odoo.com>
Please register or sign in to comment