From 865b56311a5d38cf7e437817a6e71f521df38189 Mon Sep 17 00:00:00 2001 From: RPSJR Date: Mon, 21 Oct 2024 09:11:47 -0300 Subject: [PATCH] [13.0][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 d74636ab..1c6362f2 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( [("draft", "Draft"), ("confirmed", "Confirmed"), ("cancel", "Cancelled")], 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 62b29355..b414e98c 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}" > +