We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0871827 commit 12c64f3Copy full SHA for 12c64f3
2 files changed
fleet_vehicle_fuel_type_ethanol/__manifest__.py
@@ -6,7 +6,7 @@
6
"summary": """
7
This module extends the fleet management functionality. This adds ethanol
8
as another type of fuel to be used by a vehicle in the fleet.""",
9
- "version": "18.0.1.0.0",
+ "version": "19.0.1.0.0",
10
"license": "AGPL-3",
11
"category": "Human Resources/Fleet",
12
"author": "Escodoo,Odoo Community Association (OCA)",
fleet_vehicle_fuel_type_ethanol/models/fleet_vehicle.py
@@ -4,6 +4,16 @@
4
from odoo import fields, models
5
+class FleetVehicleModel(models.Model):
+ _inherit = "fleet.vehicle.model"
+ default_fuel_type = fields.Selection(
+ selection_add=[
+ ("ethanol", "Ethanol"),
+ ("flex", "Flex (Gasoline/Ethanol)"),
13
+ ]
14
+ )
15
+
16
17
class FleetVehicle(models.Model):
18
_inherit = "fleet.vehicle"
19
0 commit comments