From 38b1debecedc70bd1ab5117ad8628deb4af8f3af Mon Sep 17 00:00:00 2001 From: Tejas Shahu Date: Fri, 30 Nov 2018 07:04:26 +0000 Subject: [PATCH] [IMP] maintenance: Duration tooltip improvement The view on maintenance show the duration with the hours as UoM. However the tooltip explains that the duration is set as minutes and second. This commit modify the tooltip in order to be coherent with the view. --- addons/maintenance/models/maintenance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/maintenance/models/maintenance.py b/addons/maintenance/models/maintenance.py index acb6455e83d..24903dca998 100644 --- a/addons/maintenance/models/maintenance.py +++ b/addons/maintenance/models/maintenance.py @@ -302,7 +302,7 @@ class MaintenanceRequest(models.Model): maintenance_type = fields.Selection([('corrective', 'Corrective'), ('preventive', 'Preventive')], string='Maintenance Type', default="corrective") schedule_date = fields.Datetime('Scheduled Date', help="Date the maintenance team plans the maintenance. It should not differ much from the Request Date. ") maintenance_team_id = fields.Many2one('maintenance.team', string='Team', required=True, default=_get_default_team_id) - duration = fields.Float(help="Duration in minutes and seconds.") + duration = fields.Float(help="Duration in hours.") @api.multi def archive_equipment_request(self):