Skip to content
Snippets Groups Projects
Commit 80811df2 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#65103

X-original-commit: f6b019fc
Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
parent da487e9e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment