[FIX] hr_fleet: Don't notify future_driver_id as Changed Driver

We are supposed to notify the driver change when the driver actually changes.

X-original-commit: 2e58d23e760313dbf58ce6a90f26b7160db460d8
This commit is contained in:
Yannick Tivisse
2021-06-11 15:36:03 +00:00
parent 77a27c574d
commit bc1603167d
+1 -1
View File
@@ -335,7 +335,7 @@ class FleetVehicle(models.Model):
def _track_subtype(self, init_values):
self.ensure_one()
if 'driver_id' in init_values or 'future_driver_id' in init_values:
if 'driver_id' in init_values:
return self.env.ref('fleet.mt_fleet_driver_updated')
return super(FleetVehicle, self)._track_subtype(init_values)