[FIX]Fuel Log graph amount key error

bzr revid: dle@openerp.com-20121018090935-xca9tneigzw8zowl
This commit is contained in:
Denis Ledoux dle@openerp.com
2012-10-18 11:09:35 +02:00
parent 265f5fd13a
commit 00e90b7dc7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -626,6 +626,7 @@ class fleet_vehicle_log_fuel(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',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,
+1 -1
View File
@@ -614,7 +614,7 @@
<!--<field name="type">graph</field>-->
<field name="arch" type="xml">
<graph string="Total Fuel amount per month">
<field name="date" />
<field name="date"/>
<field name="vehicle_id" group="True" />
<field name="amount" operator="+"/>
</graph>