From d9977634f54415ab33df50a6a59bb14098514d40 Mon Sep 17 00:00:00 2001 From: RPSJR Date: Fri, 23 Feb 2024 18:44:13 -0300 Subject: [PATCH 1/2] [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}" > + From df6873c8c2b5c5126d1f517e2cf9dca6fdc702e0 Mon Sep 17 00:00:00 2001 From: RPSJR Date: Fri, 23 Feb 2024 18:50:17 -0300 Subject: [PATCH 2/2] [FIX] pre-commit adherence --- .../models/fleet_vehicle_inspection_line.py | 2 +- fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py b/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py index f6d53efc..16b6649c 100644 --- a/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py +++ b/fleet_vehicle_inspection/models/fleet_vehicle_inspection_line.py @@ -49,7 +49,7 @@ class FleetVehicleInspectionLine(models.Model): result_description = fields.Char() - sequence = fields.Integer(string='Sequence', default=10) + sequence = fields.Integer(string="Sequence", default=10) state = fields.Selection( related="inspection_id.state", diff --git a/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml b/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml index 45c62321..74c110fe 100644 --- a/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml +++ b/fleet_vehicle_inspection/views/fleet_vehicle_inspection.xml @@ -74,7 +74,7 @@ context="{'default_inspection_id': active_id}" > - +