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
| Inputs | Method | Outputs |
|---|---|---|
|
+ 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 |
|
