Skip to content
Snippets Groups Projects
Commit f6b019fc authored by Rémy Voet (ryv)'s avatar Rémy Voet (ryv) Committed by William Henrotin
Browse files

[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#46850

Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
parent 8d0b8268
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment