[FIX]Services Log graph amount key error
bzr revid: dle@openerp.com-20121018091136-3gdxzn2ghu1js8uw
This commit is contained in:
parent
00e90b7dc7
commit
49ba1fa338
|
@ -697,6 +697,7 @@ class fleet_vehicle_log_services(osv.Model):
|
|||
'odometer_id' : fields.many2one('fleet.vehicle.odometer', 'Odometer', required=False, help='Odometer measure of the vehicle at the moment of this log'),
|
||||
'odometer' : fields.function(_get_odometer,fnct_inv=_set_odometer,type='char',string='Odometer Value',store=False),
|
||||
'odometer_unit': fields.related('vehicle_id','odometer_unit',type="char",string="Unit",store=False, readonly=True),
|
||||
'amount': fields.related('cost_id','amount',type="float",string="Amount",store=True, readonly=True),
|
||||
}
|
||||
_defaults = {
|
||||
'purchaser_id': lambda self, cr, uid, ctx: uid,
|
||||
|
|
Loading…
Reference in New Issue