[18.0][NEW] TMS Route Optimization Suite #203
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TMS Route Optimization Suite
Overview
This pull request introduces three integrated modules that provide a route optimization solution for the Transport Management System (TMS) in Odoo. These modules work together to enable intelligent route planning with capacity constraints, cost minimization, and multi-stop delivery management.
Modules Included
1. TMS Delivery Stops (
tms_delivery_stops)Extends the TMS module to support multiple delivery stops per TMS order, enabling businesses to manage complex delivery routes with multiple destinations.
Key Features
2. TMS Vehicle Capacity (
tms_vehicle_capacity)Extends the TMS and Fleet modules to manage vehicle types with capacity and cost information, providing a foundation for route optimization.
Key Features
3. TMS Route Optimizer (
tms_route_optimizer)Provides route optimization functionality for TMS using Google OR-Tools. It solves Vehicle Routing Problems (VRP) to find optimal routes for multiple delivery stops, considering vehicle capacity constraints, distances, and costs.
Key Features
Integration Architecture
The three modules work together in an integrated workflow:
Integration Points
tms_delivery_stops → tms_route_optimizer
tms_vehicle_capacity → tms_route_optimizer
tms_route_optimizer → TMS Orders
Use Cases
Technical Details
Algorithm
Optimization Process
Configuration Requirements
Prerequisites
Install OR-Tools:
Configure TMS Teams:
Configure Vehicles:
Configure Delivery Partners:
base_geolocalizemodule for automatic geocodingCreate Delivery Stops:
System Parameters (Optional)
tms.route_optimizer.max_time_seconds: Maximum optimization time (default: 300 seconds)tms.route_optimizer.max_deliveries: Maximum number of deliveries (default: 100)Features Highlights
Route Optimization Features
Delivery Stop Management
Vehicle Management