From d9977634f54415ab33df50a6a59bb14098514d40 Mon Sep 17 00:00:00 2001 From: RPSJR Date: Fri, 23 Feb 2024 18:44:13 -0300 Subject: [PATCH] [IMP] add sequential and handle widget to inspection --- .../models/fleet_vehicle_inspection_line.py | 2 ++ fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py b/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py index dce08755..f6d53efc 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..45c62321 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}" > +