Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Fleet
Entity: fleet.vehicle.model
Compute Method: _compute_co2_emission_unit
| Inputs | Method | Outputs |
|---|---|---|
|
+ for record in self: + if record.range_unit == 'km': + record.co2_emission_unit = 'g/km' + else: + record.co2_emission_unit = 'g/mi' |
|
