You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] stock: append move origin to picking instead of clearing
**Current behavior:**
During the assignment of a picking, if any of its moves have an
origin that does not match its own, the origin will be cleared
altogether.
**Expected behavior:**
The different origin should be appended to the existing origin
string (as is done in batch replenishment, for example).
**Steps to reproduce:**
1. Create 2 products, create a secondary warehouse
2. Create an orderpoint for each product, make the route on both
of them the (first?) pointed to by `resupply_route_ids` on the
primary warehouse
3. Set `qty_to_order` 1 on each of the orderpoints, and one at a
time click the 'Order' button
4. The move generated for each replenishment action will
ultimately be added to a single picking -> in the end see that
its `origin` field is cleared
**Cause of the issue:**
We currently decide to clear the picking origin during
assignment if any of its moves have a different origin.
**Fix:**
Instead, append the different origin string to the picking.
opw-4749519
closesodoo#212674
Signed-off-by: William Henrotin (whe) <[email protected]>
0 commit comments