Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Accounting/Fleet bridge

Entity: fleet.vehicle.log.services

Compute Method: _compute_vehicle_id

View 19.0
Inputs Method Outputs
  • account_move_line_id
  • account_move_line_id.vehicle_id
+ for service in self:
+             # We avoid emptying the vehicle_id as it is a required field
+             if not service.account_move_line_id.vehicle_id:
+                 continue
+             service.vehicle_id = service.account_move_line_id.vehicle_id
  • vehicle_id

Back to entity