diff --git a/odex25_fleet/odex25_fleet_account_custom/__pycache__/__init__.cpython-38.pyc b/odex25_fleet/odex25_fleet_account_custom/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 000000000..5b26bd2cb Binary files /dev/null and b/odex25_fleet/odex25_fleet_account_custom/__pycache__/__init__.cpython-38.pyc differ diff --git a/odex25_fleet/odex25_fleet_account_custom/models/__pycache__/__init__.cpython-38.pyc b/odex25_fleet/odex25_fleet_account_custom/models/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 000000000..bb4b8305b Binary files /dev/null and b/odex25_fleet/odex25_fleet_account_custom/models/__pycache__/__init__.cpython-38.pyc differ diff --git a/odex25_fleet/odex25_fleet_account_custom/models/__pycache__/models.cpython-38.pyc b/odex25_fleet/odex25_fleet_account_custom/models/__pycache__/models.cpython-38.pyc new file mode 100644 index 000000000..8bc4849c4 Binary files /dev/null and b/odex25_fleet/odex25_fleet_account_custom/models/__pycache__/models.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/__pycache__/__init__.cpython-38.pyc b/odex25_fleet/odex_fleet/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 000000000..9fd29d660 Binary files /dev/null and b/odex25_fleet/odex_fleet/__pycache__/__init__.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/__init__.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 000000000..92ec69151 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/__init__.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/account_config.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/account_config.cpython-38.pyc new file mode 100644 index 000000000..2590e07d0 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/account_config.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/driver.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/driver.cpython-38.pyc new file mode 100644 index 000000000..83ca0b475 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/driver.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/driver_departments.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/driver_departments.cpython-38.pyc new file mode 100644 index 000000000..a66a8bea5 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/driver_departments.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/fleet_service_type.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/fleet_service_type.cpython-38.pyc new file mode 100644 index 000000000..585704643 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/fleet_service_type.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/form_renew.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/form_renew.cpython-38.pyc new file mode 100644 index 000000000..520eef676 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/form_renew.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/infractions.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/infractions.cpython-38.pyc new file mode 100644 index 000000000..b256f77fd Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/infractions.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/insurance_companies.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/insurance_companies.cpython-38.pyc new file mode 100644 index 000000000..fa7a347e1 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/insurance_companies.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/maintenance_request.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/maintenance_request.cpython-38.pyc new file mode 100644 index 000000000..201d6547b Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/maintenance_request.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/res_config.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/res_config.cpython-38.pyc new file mode 100644 index 000000000..6bd9482dd Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/res_config.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/vehicle.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/vehicle.cpython-38.pyc new file mode 100644 index 000000000..0783ff7db Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/vehicle.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/__pycache__/vehicle_deleation.cpython-38.pyc b/odex25_fleet/odex_fleet/models/__pycache__/vehicle_deleation.cpython-38.pyc new file mode 100644 index 000000000..e0bcec3e9 Binary files /dev/null and b/odex25_fleet/odex_fleet/models/__pycache__/vehicle_deleation.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/models/maintenance_request.py b/odex25_fleet/odex_fleet/models/maintenance_request.py index bbf979f7f..965c4710f 100644 --- a/odex25_fleet/odex_fleet/models/maintenance_request.py +++ b/odex25_fleet/odex_fleet/models/maintenance_request.py @@ -22,7 +22,12 @@ class FleetMaintenance(models.Model): raise ValidationError(_("You Need To Configurate Account Details")) return res - name = fields.Char(string="Name") + name = fields.Many2one( + 'fleet.service.type', + string='Service Type', + required=True, + help="Choose the type of maintenance service" + ) next_request_date = fields.Date(string="Next Request Date") date = fields.Date(string=" Request Date", default=fields.Date.context_today) next_odometer = fields.Float(string="Next Odometer", compute='get_old_odometer', store=True) diff --git a/odex25_fleet/odex_fleet/reports/__pycache__/__init__.cpython-38.pyc b/odex25_fleet/odex_fleet/reports/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 000000000..2ddd655ba Binary files /dev/null and b/odex25_fleet/odex_fleet/reports/__pycache__/__init__.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/reports/__pycache__/driver.cpython-38.pyc b/odex25_fleet/odex_fleet/reports/__pycache__/driver.cpython-38.pyc new file mode 100644 index 000000000..5f388b7aa Binary files /dev/null and b/odex25_fleet/odex_fleet/reports/__pycache__/driver.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/reports/__pycache__/fleet_report.cpython-38.pyc b/odex25_fleet/odex_fleet/reports/__pycache__/fleet_report.cpython-38.pyc new file mode 100644 index 000000000..c6c1176a5 Binary files /dev/null and b/odex25_fleet/odex_fleet/reports/__pycache__/fleet_report.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/reports/__pycache__/maintains_report.cpython-38.pyc b/odex25_fleet/odex_fleet/reports/__pycache__/maintains_report.cpython-38.pyc new file mode 100644 index 000000000..0d814c2da Binary files /dev/null and b/odex25_fleet/odex_fleet/reports/__pycache__/maintains_report.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/reports/__pycache__/renew_report.cpython-38.pyc b/odex25_fleet/odex_fleet/reports/__pycache__/renew_report.cpython-38.pyc new file mode 100644 index 000000000..f07d3b75f Binary files /dev/null and b/odex25_fleet/odex_fleet/reports/__pycache__/renew_report.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/reports/__pycache__/service_report.cpython-38.pyc b/odex25_fleet/odex_fleet/reports/__pycache__/service_report.cpython-38.pyc new file mode 100644 index 000000000..3585900bd Binary files /dev/null and b/odex25_fleet/odex_fleet/reports/__pycache__/service_report.cpython-38.pyc differ diff --git a/odex25_fleet/odex_fleet/views/maintenance_request_view.xml b/odex25_fleet/odex_fleet/views/maintenance_request_view.xml index dc1993bb0..c899056f3 100644 --- a/odex25_fleet/odex_fleet/views/maintenance_request_view.xml +++ b/odex25_fleet/odex_fleet/views/maintenance_request_view.xml @@ -20,7 +20,7 @@