Route Creation
One-Click Route Generation
A Create Delivery Route button appears on batch transfers that are In Progress and don't yet have a route. One click produces a complete, validated, optimized delivery route.Delivery Route Type
Generated routes are automatically typed as "Delivery," enforcing vehicle, driver, and departure date at confirmation, and defaulting to a 15-minute service duration per stop.Smart Stop Grouping
Multiple pickings to the same customer are automatically merged into a single route stop; stops are sorted alphabetically by customer name.Optimization API by Default
Routes generated from batch transfers use the Mapbox Optimization API for efficient stop sequencing, adjustable from the route form if needed.Comprehensive Prerequisite Validation
Before creation, the system checks that the batch has a driver and vehicle, every picking has a delivery address with both latitude and longitude, every picking has a source location, and the resolved departure address has valid coordinates. Each failure produces a specific, actionable error message
Stop Management
Weight & Volume per Stop
Total weight and volume are calculated for each delivery stop based on the assigned pickings' move lines, using the system-configured units of measure (e.g., kg, m³).Transfer Details per Stop
Each route stop shows the list of assigned transfers, picking count, and weight/volume breakdown inline on the list view and in a dedicated section on the stop form
Inventory & Fleet Integration
Auto-Assignment from Batch
Driver, vehicle, responsible user, scheduled date, and description are copied from the batch transfer to the route automatically — no duplicate data entry.Bidirectional Linking
Batch transfers show a Delivery Route smart button opening the route; the route shows the source batch as a read-only link; individual pickings show which route and route stop they belong to via computed fieldsLocation Address Hierarchy
The departure address is resolved by checking the batch's dock location first, then the first picking's source location, then walking up through parent locations until an address is found. Works with arbitrarily complex warehouse structuresAddress Field on Stock Locations
Adds an Address field (editable) and a Real Address field (computed from the hierarchy) to every stock location, so a partner can be associated with any warehouse, zone, or dock.
Lifecycle Management
Route Cancellation on Batch Cancel
When a batch transfer is cancelled, any associated route in Draft or Confirmed state is automatically cancelled and the event is logged in the chatter.Unlink Draft Routes
A dedicated Unlink Delivery Route button lets dispatchers delete a Draft route from a batch (for example after editing pickings or fixing addresses) so a fresh route can be generated.Duplicate Prevention
Three layers of protection — hidden UI button, application-level error on RPC, and a database-level unique constraint — ensure one batch can have at most one route.Cleanup on Delete
Deleting a route or a single route stop automatically removes the picking associations so transfers never point to records that no longer exist.
Audit Trail
Chatter Integration
Route creation, confirmation, cancellation, and unlinking events are logged with clickable links in the chatter of both the batch transfer and the route, creating a complete audit trail tied to Odoo's native mail system.
Driver Portal Delivery Features
PDF Delivery Manifest
One-click access to the Odoo batch picking report as a PDF, opened inline in the browser. The filename includes the batch reference (e.g. delivery_manifest_BATCH/OUT/00001.pdf). Served through an authenticated portal endpoint (/my/route-overview/{token}/manifest) — unauthenticated requests and routes without a batch return 404.Manifest Button on Route Cards
A manifest icon button on every route card in the portal overview, so drivers can grab the PDF straight from the dashboard without opening the route first
Manifest Button on Route Detail Page
A prominent Delivery Manifest button in the route detail action bar for drivers reviewing the route before departure.Manifest Button in Map View
The same manifest is one tap away while navigating — a button above the waypoint list in the interactive map sidebar.Batch Transfer Reference
The linked batch transfer document is displayed in the route detail header, giving drivers a direct cross-reference back to inventory.Transfer Column in Stops Table
An extra column in the route detail stops table listing the picking documents assigned to each stop, comma-separated (e.g. WH/OUT/00001, WH/OUT/00002)Picking References in Map Sidebar
Each waypoint in the interactive map sidebar shows the associated picking names with a barcode icon — including both intermediate stops and the final destination, handled consistently.Conditional Feature Visibility
All delivery-specific UI elements (manifest buttons, batch reference, Transfer column, picking names) are automatically hidden when a route has no linked batch transfer. Manual routes continue to display exactly as they do in the base portal.



