-
- Downloads
[FIX] stock_account: negative stock and vacuum
Running the vacuum in avco indeed fixed the estimated value on the delivery but it did not update the standard price afterwards, making it possible to have an inconsistent standard price with the actual value in stock, as described in [0] and in the task [1]. A test was added (and validated) in the layers test file and an two old one were fixed. test_average_perpetual_2 displayed also a different missing bit: the vacuum should run when the user unlock and increments a receipt. [0] https://github.com/odoo/odoo/pull/41669 [1] 2154638 closes odoo/odoo#42292 X-original-commit: 6e4c9b8219db0c94c29f5ee145998e6f1597bb55 Signed-off-by:Simon Lejeune (sle) <sle@openerp.com>
Showing
- addons/stock_account/models/product.py 5 additions, 0 deletionsaddons/stock_account/models/product.py
- addons/stock_account/models/stock_move_line.py 2 additions, 0 deletionsaddons/stock_account/models/stock_move_line.py
- addons/stock_account/tests/test_stockvaluation.py 16 additions, 6 deletionsaddons/stock_account/tests/test_stockvaluation.py
- addons/stock_account/tests/test_stockvaluationlayer.py 11 additions, 0 deletionsaddons/stock_account/tests/test_stockvaluationlayer.py
Loading
Please register or sign in to comment