-
- Downloads
[FIX] stock_account: fix valuate empty stock.
To reproduce, product A in AVCO: - Buy 2 product A at 1.00 $ - Buy 1 product A at 1.01 $ - Sell 3 product A. - The stock valuation won't be correct: still remain 0.01 in stock without quantity and the svl related to the sell have a value of 3.00 (instead of 3.01) To fix: In case of AVCO, add the rounding error value to the out stock move layer. closes odoo/odoo#65103 X-original-commit: f6b019fc Signed-off-by:William Henrotin <Whenrow@users.noreply.github.com>
Showing
- addons/stock_account/models/product.py 6 additions, 0 deletionsaddons/stock_account/models/product.py
- addons/stock_account/tests/test_stockvaluation.py 19 additions, 1 deletionaddons/stock_account/tests/test_stockvaluation.py
- addons/stock_account/tests/test_stockvaluationlayer.py 13 additions, 0 deletionsaddons/stock_account/tests/test_stockvaluationlayer.py
Loading
Please register or sign in to comment