-
- Downloads
[IMP] stock: merge moves
The rationale for the need of a merge move mechanism is that, with the new default view, having multiple stock move for the same products is confusing. The idea is that if a move is confirmed in a picking already having a move with the same characteristics, we update the existing move and unlink the new one. That’s why it’s done at the end of `_action_confirm`. In some cases, merging moves is unwanted (backordered moves for examples). Therefore, we chose to add a kwarg to `_action_confirm` in order do control the mechanism.
Showing
- addons/mrp/models/stock_move.py 2 additions, 2 deletionsaddons/mrp/models/stock_move.py
- addons/purchase/tests/test_create_picking.py 1 addition, 1 deletionaddons/purchase/tests/test_create_picking.py
- addons/stock/models/stock_move.py 63 additions, 22 deletionsaddons/stock/models/stock_move.py
- addons/stock/tests/test_move2.py 162 additions, 39 deletionsaddons/stock/tests/test_move2.py
- addons/stock/tests/test_stock_flow.py 16 additions, 20 deletionsaddons/stock/tests/test_stock_flow.py
Loading
Please register or sign in to comment