From a999969f81f67d38cf17c29e208e954b72560de9 Mon Sep 17 00:00:00 2001
From: Ravi Gadhia <rga@odoo.com>
Date: Fri, 6 May 2016 16:08:11 +0530
Subject: [PATCH] [REM] fleet: Remove unused code

---
 addons/fleet/models/fleet.py              | 4 ----
 addons/fleet/security/ir.model.access.csv | 2 --
 2 files changed, 6 deletions(-)

diff --git a/addons/fleet/models/fleet.py b/addons/fleet/models/fleet.py
index ea40e6f427e3..e7e6c8533bc6 100644
--- a/addons/fleet/models/fleet.py
+++ b/addons/fleet/models/fleet.py
@@ -657,8 +657,4 @@ class FleetVehicleLogContract(models.Model):
         self.scheduler_manage_auto_costs()
         self.scheduler_manage_contract_expiration()
 
-class FleetContractState(models.Model):
-    _name = 'fleet.contract.state'
-    _description = 'Contains the different possible status of a leasing contract'
 
-    name = fields.Char('Contract Status', required=True)
diff --git a/addons/fleet/security/ir.model.access.csv b/addons/fleet/security/ir.model.access.csv
index e3f410928d33..bc2901071ad8 100644
--- a/addons/fleet/security/ir.model.access.csv
+++ b/addons/fleet/security/ir.model.access.csv
@@ -8,7 +8,6 @@ fleet_vehicle_log_services_access_right_user,fleet_vehicle_log_services_access_r
 fleet_vehicle_log_contract_access_right_user,fleet_vehicle_log_contract_access_right,model_fleet_vehicle_log_contract,fleet_group_user,1,0,0,0
 fleet_service_type_access_right_user,fleet_service_type_access_right,model_fleet_service_type,fleet_group_user,1,0,0,0
 access_fleet_vehicle_cost_user,access_fleet_vehicle_cost,model_fleet_vehicle_cost,fleet_group_user,1,1,1,0
-access_fleet_contract_state_user,access_fleet_contract_state,model_fleet_contract_state,fleet_group_user,1,0,0,0
 fleet_vehicle_model_access_right,fleet_vehicle_model_access_right,model_fleet_vehicle_model,fleet_group_manager,1,1,1,1
 fleet_vehicle_tag_access_right,fleet_vehicle_tag_access_right,model_fleet_vehicle_tag,fleet_group_manager,1,1,1,1
 fleet_vehicle_state_access_right,fleet_vehicle_state_access_right,model_fleet_vehicle_state,fleet_group_manager,1,1,1,1
@@ -20,4 +19,3 @@ fleet_vehicle_log_services_access_right,fleet_vehicle_log_services_access_right,
 fleet_vehicle_log_contract_access_right,fleet_vehicle_log_contract_access_right,model_fleet_vehicle_log_contract,fleet_group_manager,1,1,1,1
 fleet_service_type_access_right,fleet_service_type_access_right,model_fleet_service_type,fleet_group_manager,1,1,1,1
 access_fleet_vehicle_cost,access_fleet_vehicle_cost,model_fleet_vehicle_cost,fleet_group_manager,1,1,1,1
-access_fleet_contract_state,access_fleet_contract_state,model_fleet_contract_state,fleet_group_manager,1,1,1,1
\ No newline at end of file
-- 
GitLab