diff --git a/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py b/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py index dce08755..16b6649c 100644 --- a/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py +++ b/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py @@ -49,6 +49,8 @@ class FleetVehicleInspectionLine(models.Model): result_description = fields.Char() + sequence = fields.Integer(string="Sequence", default=10) + state = fields.Selection( related="inspection_id.state", readonly=True, diff --git a/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml b/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml index 5b15410b..74c110fe 100644 --- a/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml +++ b/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml @@ -74,6 +74,7 @@ context="{'default_inspection_id': active_id}" > +