[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:
jev-odoo
2020-05-29 09:30:19 +00:00
parent 78d5b744f5
commit 223b6cff6e
+1 -1
View File
@@ -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)