Fleet Vehicle Odometer Driver

This module changes the driver_id field of the odometer log (fleet.vehicle.odometer) from a related field pointing to the vehicle’s current driver into a stored, persisted field.
In standard Fleet, driver_id is related="vehicle_id.driver_id", so whenever the vehicle’s driver changes, every odometer log (including historical ones) reflects the new driver. This module freezes the driver on each log at creation time:
- If the driver is sent in the create payload, that value is saved and kept.
- Otherwise, the log defaults to the vehicle’s current driver at creation time.
Table of contents
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Escodoo
Contributors
- Escodoo <https://www.escodoo.com.br>_:
- Wesley Oliveira wesley.oliveira@escodoo.com.br
Maintainers
Current maintainer:

This module is part of the Escodoo/fleet-addons project on GitHub.
You are welcome to contribute.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Fleet (fleet)
• Discuss (mail) |
| Lines of code | 23 |
| Technical Name |
fleet_vehicle_odometer_driver |
| License | AGPL-3 |
| Website | https://github.com/Escodoo/fleet-addons |
Please log in to comment on this module