Skip to content

Commit 12c64f3

Browse files
committed
[MIG] fleet_vehicle_fuel_type_ethanol: Migration to 19
1 parent 0871827 commit 12c64f3

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

fleet_vehicle_fuel_type_ethanol/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"summary": """
77
This module extends the fleet management functionality. This adds ethanol
88
as another type of fuel to be used by a vehicle in the fleet.""",
9-
"version": "18.0.1.0.0",
9+
"version": "19.0.1.0.0",
1010
"license": "AGPL-3",
1111
"category": "Human Resources/Fleet",
1212
"author": "Escodoo,Odoo Community Association (OCA)",

fleet_vehicle_fuel_type_ethanol/models/fleet_vehicle.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
from odoo import fields, models
55

66

7+
class FleetVehicleModel(models.Model):
8+
_inherit = "fleet.vehicle.model"
9+
default_fuel_type = fields.Selection(
10+
selection_add=[
11+
("ethanol", "Ethanol"),
12+
("flex", "Flex (Gasoline/Ethanol)"),
13+
]
14+
)
15+
16+
717
class FleetVehicle(models.Model):
818
_inherit = "fleet.vehicle"
919

0 commit comments

Comments
 (0)