[FIX] fleet: No notification on future_driver_update
Added `future_driver_id` in the 'Changed Driver' subtype. OPW-2242321 closes odoo/odoo#52150 X-original-commit: d2174b3223e9987ae05920c5c9de54688ee05eda Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
This commit is contained in:
@@ -299,7 +299,7 @@ class FleetVehicle(models.Model):
|
||||
|
||||
def _track_subtype(self, init_values):
|
||||
self.ensure_one()
|
||||
if 'driver_id' in init_values:
|
||||
if 'driver_id' in init_values or 'future_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