Change 1 of 1
Driver assignment
Partly confirmed in the Odoo 20 source code. Parts of this note could not be traced.
When selecting or changing a car for an employee in the Payroll app, the vehicle's assigned driver is updated automatically.
Official Odoo 20 release note
In plain words
In the Belgian payroll contract, picking a new Company Car sets the employee as that car's Future Driver and frees the old car's Future Driver. A later commit states that the Driver itself is no longer set automatically from payroll: the fleet officer confirms the change. Not verified from the supplied source code that the current driver is replaced directly.
Where to find it
- (Belgian company) Payroll, open an employee contract.
- Change Company Car.
- Fleet: the car now lists the employee as Future Driver.
For users
After choosing a car on the contract, the car shows the employee as Future Driver in Fleet; the fleet manager is notified and applies the change.
For developers
hr.version.write in l10n_be_hr_payroll sets new_car.future_driver_id to the employee's work contact and clears it on the old car when it pointed to the same employee.
Upgrading from Odoo 19
Only relevant for Belgian payroll; no data migration.
- Text only: the Company Car field lives in l10n_be_hr_payroll, which is not installed on this US demo database (no Belgian company).
- No Enterprise 19 source to compare the old behaviour.
