[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user