[IMP] fleet: track state
Purpose: Prior state was not tracked for 'Services for vehicles' and it was not possible to know when service started and when it was done. task-3469567 closes odoo/odoo#132338 Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
@@ -37,7 +37,7 @@ class FleetVehicleLogServices(models.Model):
|
||||
('running', 'Running'),
|
||||
('done', 'Done'),
|
||||
('cancelled', 'Cancelled'),
|
||||
], default='new', string='Stage', group_expand='_expand_states')
|
||||
], default='new', string='Stage', group_expand='_expand_states', tracking=True)
|
||||
|
||||
def _get_odometer(self):
|
||||
self.odometer = 0
|
||||
|
||||
Reference in New Issue
Block a user