OdooWiki OCA HUB

Assign date end in vehicle history

fleet_vehicle_history_date_end folder_open OCA/fleet open_in_new
Human Resources/Fleet License: AGPL-3

Odoo only assign the start date on vehicle's drivers history when a new driver is assigned, this module also will assign automatically the end date in previous vehicle's driver histories when a new driver is assigned to the vehicle.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When a new driver is assigned to a vehicle, this module automatically fills in the end date of the previous driver's history line, so the vehicle's driver history stays complete without manual editing.

In Odoo Fleet, each time a driver is assigned to a vehicle a history line is created with a start date, but the previous line was left open with no end date. This module closes that gap automatically.

  • When a new driver assignment is saved on a vehicle, the module looks for any other history line for the same vehicle that still has no end date.
  • Those open lines are then given an end date equal to the start date of the new assignment, so the periods follow each other without overlap or gaps.
  • The change happens behind the scenes when the assignment is created; no extra button or screen is needed.

It only touches the vehicle driver history records (fleet.vehicle.assignation.log) and adds no new menus, reports or settings. Users keep working the same way in the Fleet app; the difference is that the driver history of a vehicle is now correctly dated, which makes it easier to see who drove a vehicle and during which period.

Depends on

fleet
Models and fields (1)
  • fleet.vehicle.assignation.log · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.