[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:
Yannick Tivisse
2018-04-27 17:30:30 +02:00
parent 47857a63ac
commit 13bd8e7db6
+1 -1
View File
@@ -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)