[IMP] fleet: Order cars by plate, then by acquisition date
This commit allow users to see in the kanban/list view the oldest cars with no plates
This commit is contained in:
@@ -10,7 +10,7 @@ class FleetVehicle(models.Model):
|
||||
_inherit = 'mail.thread'
|
||||
_name = 'fleet.vehicle'
|
||||
_description = 'Information on a vehicle'
|
||||
_order = 'license_plate asc'
|
||||
_order = 'license_plate asc, acquisition_date asc'
|
||||
|
||||
def _get_default_state(self):
|
||||
state = self.env.ref('fleet.vehicle_state_active', raise_if_not_found=False)
|
||||
|
||||
Reference in New Issue
Block a user