Currently all the customer shipments are created in the “Waiting” state and the end user should user the assign button to try if the shipment products are available. This is a boring and repetitive task for end users which slow downs things.
I think it will be better to add a Wizard to assign all the shipments, so an user can give the order the system to try to assing all the existing shipments. This process will perform the following steps:
- Search all waiting shipments scheduled for today.
- Try to assign it one by one. If the assign_try fails it’s assigned moves will be reset back to draft (so it can be used for other shipments).
This process will be repetably executed for:
- Supplier Return Shipments
- Customer Shipments
After executing the wizard all the assigned records will be opened (in several tabs like we do for stock supply)
Of course it should be possible to customize the assignation records (domain and order) and model order by third party modules. So each company can update the process to it’s needs.
A cron action will be created to allow the execution of the process but withouth creating any task by default. This allow to schedule to be executed periodically (for example every night or whatever) and also keep the current workflow for existing users.