Overview
Field staff and company drivers need a simple way to record which vehicle they used, when, and how far they drove — without sitting at a desk. This module adds a fleet trip log and the JSON-RPC endpoints the AlshayebCo HR mobile app calls to start and end trips, capture odometer readings and GPS coordinates, and tie each trip to a driver, vehicle, and optional project. Completed trips automatically push the latest mileage back into Odoo Fleet, keeping vehicle odometers current with no manual data entry.
Workflow
Fleet Trip
Active
Completed
Cancelled
Key Features
- Adds a Fleet Trip log that records driver, vehicle, project, start/end times, odometer readings, and purpose.
- Drivers start and end trips from the mobile app, with one active trip enforced per driver at a time.
- Computes trip distance automatically from start and end odometer readings.
- Captures GPS coordinates at both the start and end of each trip.
- Syncs the vehicle's odometer in Odoo Fleet to the latest reading when a trip is completed.
- Auto-numbers every trip with a TRIP/00001-style sequence reference.
- Exposes search-and-list of company vehicles, flagging the one assigned to the current driver.
- Tracks key changes (vehicle, odometer, state) on the trip's chatter for an audit trail.
- Blocks an end odometer reading that is lower than the start reading via a database constraint.