From 3a8272359acc8928bd6825890fcdbf4b0468e932 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Mon, 25 Mar 2013 11:55:07 +0530 Subject: [PATCH] [IMP] improved code bzr revid: tpa@tinyerp.com-20130325062507-6gjq4pjyfllqydbs --- addons/fleet/fleet.py | 2 +- addons/fleet/fleet_view.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/fleet/fleet.py b/addons/fleet/fleet.py index 0e0c08e30eb..483f989fcde 100644 --- a/addons/fleet/fleet.py +++ b/addons/fleet/fleet.py @@ -77,7 +77,7 @@ class fleet_vehicle_cost(osv.Model): 'name': fields.function(_cost_name_get_fnc, type="char", string='Name', store=True), 'vehicle_id': fields.many2one('fleet.vehicle', 'Vehicle', required=True, help='Vehicle concerned by this log'), 'cost_subtype_id': fields.many2one('fleet.service.type', 'Type', help='Cost type purchased with this cost'), - 'amount': fields.float('Total Price', help="Cost that is paid only once at the creation of the contract"), + 'amount': fields.float('Total Price'), 'cost_type': fields.selection([('contract', 'Contract'), ('services','Services'), ('fuel','Fuel'), ('other','Other')], 'Category of the cost', help='For internal purpose only', required=True), 'parent_id': fields.many2one('fleet.vehicle.cost', 'Parent', help='Parent cost to this current cost'), 'cost_ids': fields.one2many('fleet.vehicle.cost', 'parent_id', 'Included Services'), diff --git a/addons/fleet/fleet_view.xml b/addons/fleet/fleet_view.xml index 25bc62fe798..f3f101ba9bf 100644 --- a/addons/fleet/fleet_view.xml +++ b/addons/fleet/fleet_view.xml @@ -244,7 +244,7 @@