Field Service Fleet
fieldservice_fleet · OCA/field-service
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
FSMVehicle— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `INSERT INTO fleet_vehicle ( name, model_id, driver_id, is_fsm_vehicle, odometer_unit, power_unit, active) VALUES ( %s, %s, %s, True, 'kilometers', %s, True);` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows you to link the vehicles and workers of Field Service with vehicles and drivers of Fleet.
Beware that the Fleet module can have more vehicles than the FSM one (not all vehicles of the company are used for Field Service work).
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fleet_vehicle_form_fsm |
fleet.vehicle.form.fsm | fleet.vehicle | form | Inherits fleet.fleet_vehicle_view_form |
fsm_vehicle_form_fleet |
fsm.vehicle.form.fleet | fsm.vehicle | form | Inherits fieldservice_vehicle.fsm_vehicle_form_view |
vehicle_wizard_view |
Convert to a FSM Vehicle | fsm.fleet.wizard | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
is_fsm_vehicleBooleanstring='Is used for Field Service?'
-
set_fsm_driver(self)
No new fields.
Public methods (2)-
action_convert(self) -
action_convert_vehicle(self, vehicle)
-
fleet_vehicle_idMany2one → fleet.vehicleondelete='restrict'required=Truestring='Vehicle Details' args: 'fleet.vehicle'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…