-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] fieldservice_vehicle_stock: Add fsm_vehicle_out for vehicle-to-…
…location transfers - Introduced `fsm_vehicle_out` field in `stock.picking.type` to support unloading inventory from FSM Vehicles. - Updated transfer validation to handle both loading (fsm_vehicle_in) and unloading (fsm_vehicle_out) operations. - Ensured proper location updates and validation when moving stock between FSM vehicles and locations. This improvement extends the existing vehicle loading logic to also control stock transfers from vehicles to other locations.
- Loading branch information
Showing
10 changed files
with
160 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
To use this module you must first generate some stock moves that | ||
that will be transferred using a stock operation type which supports | ||
FSM vehicle loading. | ||
1. **Create a Location for the Vehicle** | ||
- Navigate to Inventory > Configuration > Locations and create a new location. | ||
- Set a name. | ||
- Set the `Parent Location` to `Vehicles`. | ||
- Set the location type to `Internal Location`. | ||
- Save the location. | ||
|
||
In order to confirm the transfer, a FSM Vehicle must be set. The FSM | ||
Vehicle can be set manually on the transfer in the Additional Info tab | ||
or it will be automatically set if the transfer has a linked FSM Order | ||
and a vehicle is assigned to that order. | ||
2. **Create an FSM Vehicle** | ||
- Navigate to Field Service > Master Data > Vehicles and create a new vehicle. | ||
- Set a name. | ||
- Assign a driver. | ||
- Assign the location you created in step 1. | ||
- Save the vehicle. | ||
- Enter the driver's record and set the `Default Vehicle` field to the vehicle you just created. | ||
|
||
When the FSM Vehicle is updated on a transfer, the destination locations | ||
are updated to reflect the vehicle storage location. | ||
3. **Generate Stock Moves** | ||
- Navigate to Inventory > Operations > Transfers and create a new transfer. | ||
- On the `Operation Type` field, select an operation type that supports FSM vehicle loading or unloading. Examples of this include `Vehicle Loading`, to load a vehicle from stock, and `Location Delivery`, to unload a vehicle to a customer location. | ||
- Add the products you want to transfer and save the transfer. | ||
- By default, the Source Location or Destination Location (depending on the selected operation type) will be set to the default `Vehicles` location. | ||
|
||
4. **Validate the Transfer** | ||
- In the `Additional Info` tab, set the FSM Vehicle on the transfer. | ||
- If you link an FSM order to the transfer, and the FSM order has a vehicle assigned with a storage location that is a child of the `Vehicles` location, the vehicle and its corresponding location will be automatically set on the transfer. | ||
- When validating the picking, the destination location of the picking and it's move lines will be updated to the vehicle's storage location. The assigned products will be moved from or to the vehicle location, depending on the selected operation type. | ||
- If you try to confirm a transfer without setting the FSM Vehicle, an error will be raised. | ||
- If you try to set a vehicle or link an FSM order with a vehicle whose storage location is not a child of the Vehicles location, an error will be raised. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters