From 2e494c9a9d22f950cda439b82e017858769dada0 Mon Sep 17 00:00:00 2001 From: "Amit Bhavsar (Open ERP)" Date: Fri, 21 Jun 2013 14:38:27 +0530 Subject: [PATCH] [Fleet] Improve fields string. bzr revid: amb@tinyerp.com-20130621090827-7222v30shoat0521 --- addons/fleet/fleet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/fleet/fleet.py b/addons/fleet/fleet.py index a476a801e7c..c306ca814e8 100644 --- a/addons/fleet/fleet.py +++ b/addons/fleet/fleet.py @@ -160,8 +160,8 @@ class fleet_vehicle_model(osv.Model): 'brand_id': fields.many2one('fleet.vehicle.model.brand', 'Model Brand', required=True, help='Brand of the vehicle'), 'vendors': fields.many2many('res.partner', 'fleet_vehicle_model_vendors', 'model_id', 'partner_id', string='Vendors'), 'image': fields.related('brand_id', 'image', type="binary", string="Logo"), - 'image_medium': fields.related('brand_id', 'image_medium', type="binary", string="Medium Logo"), - 'image_small': fields.related('brand_id', 'image_small', type="binary", string="Small Logo"), + 'image_medium': fields.related('brand_id', 'image_medium', type="binary", string="Logo - medium"), + 'image_small': fields.related('brand_id', 'image_small', type="binary", string="Logo - small"), } @@ -354,8 +354,8 @@ class fleet_vehicle(osv.Model): 'power': fields.integer('Power (kW)', help='Power in kW of the vehicle'), 'co2': fields.float('CO2 Emissions', help='CO2 emissions of the vehicle'), 'image': fields.related('model_id', 'image', type="binary", string="Logo"), - 'image_medium': fields.related('model_id', 'image_medium', type="binary", string="Medium Logo"), - 'image_small': fields.related('model_id', 'image_small', type="binary", string="Small Logo"), + 'image_medium': fields.related('model_id', 'image_medium', type="binary", string="Logo - medium"), + 'image_small': fields.related('model_id', 'image_small', type="binary", string="Logo - small"), 'contract_renewal_due_soon': fields.function(_get_contract_reminder_fnc, fnct_search=_search_contract_renewal_due_soon, type="boolean", string='Has Contracts to renew', multi='contract_info'), 'contract_renewal_overdue': fields.function(_get_contract_reminder_fnc, fnct_search=_search_get_overdue_contract_reminder, type="boolean", string='Has Contracts Overdued', multi='contract_info'), 'contract_renewal_name': fields.function(_get_contract_reminder_fnc, type="text", string='Name of contract to renew soon', multi='contract_info'),