I’ll try to illustrate a problem discussed yesterday on irc (IRC logs of #tryton for Wednesday, 2020-09-16).
It concerns customer shipments and packing. In our case, we are using lots.
Here’s the screen with the inventory moves:
And the screen with the outgoing moves which is similar to the inventory moves in state “Waiting”:
We click on “assign” or “Manual Assign”, state is now “Assigned” and “From Location” and “Lot” field are updated with the datas “where and which product/lot to pick”:
Outgoing moves stay unchanged:
Until there nothing special. Strange part is about packing.
I would then doing packing on my picking list. So i’m clicking on the “+” on the packages list. I’m selecting package type:
And now i would like to associate some lines of my picking list with specific lots number to this package but only the outgoing moves (which are not updated following my inventory moves) are available for association with the package:
Those outgoing moves are updated after clicking on “Make Shipment” (but then it is no more possible to edit packages).
This synchronization is made with modules/stock: 3ae505cf18d6 shipment.py
which is called on workflow events “Assign” and “Pack”. But for the “assign” workflow nothing seems updated by this method.
For us it seems important to know which lots are in a specific package. To know for example lots number 1,2,3 & 4 are on pallet 1, etc… But to do such thing we have to edit also outgoing moves as duplicate of inventory moves before packing. Should tryton have an intermediate state “picked” in the workflow between assigned and before packed to allow to select the correct moves for the packing ? When clicking on the “Pick” button inventory moves would be synced on outgoing moves and packing would possible only in the state “picked”. What do you think ?