Skip to content
Snippets Groups Projects
Commit 4465eb9f authored by Richard deMeester's avatar Richard deMeester Committed by Arnold Moyaux
Browse files

[FIX] stock_account: Changing costing method with negative stock


Usecase to reproduce:
- Set product as FIFO and a cost of 10$
- Sell 5 units
- Modify the cost method to average

We expect the value of the stock to remain -50$.
However it went to -150$

It happens because the change of cost method is not supported
with negative quantity of stock. It's not really a huge bug because
it will be reconcile to the real value in the next in and when the
stock will be positive again but at least it gives a proper valuation
of the inventory.

opw-3100717

closes odoo/odoo#111341

X-original-commit: 3ff51daa
Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
parent aa13f9c6
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