wms
wms copied to clipboard
[FIX] shopfloor_reception: Ensure state assign of remaining move
If there is not all processed for one move, we have to ensure that the state of the remaining move is still assigned
.
Otherwise the last remaining qty of this move will be not split into a own transfer.
https://github.com/OCA/wms/blob/c9cf770e08eae63574f7dd7c5dcbc238e6e00fe0/shopfloor_reception/services/reception.py#L1297 https://github.com/OCA/wms/blob/c9cf770e08eae63574f7dd7c5dcbc238e6e00fe0/shopfloor/models/stock_move.py#L100
cc @jbaudoux @TDu @mmequignon
Hi @JuMiSanAr, @mmequignon, some modules you are maintaining are being modified, check this out!
@TDu @mmequignon @jbaudoux why did we choose to call the recompute_state? I think that's not necessary since we calling action_assign immediately afterwards. https://github.com/OCA/wms/blob/c9cf770e08eae63574f7dd7c5dcbc238e6e00fe0/shopfloor_reception/services/reception.py#L1303
ping @jbaudoux @TDu