[ADD]Add horsepower_tax field

bzr revid: dle@openerp.com-20120921112051-qmv79v6v0r0eumuc
This commit is contained in:
Denis Ledoux dle@openerp.com
2012-09-21 13:20:51 +02:00
parent 1ab5e7e100
commit 52c00df8d2
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -47,7 +47,8 @@ class fleet_vehicle_model(osv.Model):
'transmission' : fields.selection([('manual', 'Manual'),('automatic','Automatic')], 'Transmission', help='Transmission Used by the vehicle',required=False),
'fuel_type' : fields.selection([('gasoline', 'Gasoline'),('diesel','Diesel'),('electric','Electric'),('hybrid','Hybrid')], 'Fuel Type', help='Fuel Used by the vehicle',required=False),
'horses' : fields.integer('Horses',required=False),
'horsepower' : fields.integer('Horsepower',required=False),
'horsepower_tax': fields.float('Horsepower Taxation'),
'power' : fields.integer('Power (kW)',required=False,help='Power in kW of the vehicle'),
'co2' : fields.float('CO2 Emissions',required=False,help='CO2 emissions of the vehicle'),
}
@@ -71,6 +72,7 @@ class fleet_vehicle_model_make(osv.Model):
_description = 'Make model of the vehicle'
_columns = {
'name' : fields.char('Make',size=32, required=True),
'country_id': fields.many2one('res.country', 'Country', required=False),
}
class fleet_vehicle(osv.Model):
+3 -2
View File
@@ -27,11 +27,12 @@
<group>
<field name="transmission" />
<field name="fuel_type" />
<field name="co2" />
</group>
<group>
<field name="horses" />
<field name="horsepower" />
<field name="horsepower_tax" />
<field name="power" />
<field name="co2" />
</group>
</group>
</page>