From 2181a9fb964f9a3d1e360b7c12a00ddf8dc03834 Mon Sep 17 00:00:00 2001 From: snd Date: Tue, 26 Feb 2019 15:00:13 +0000 Subject: [PATCH] [FIX] maintenance: tooltip showing wrong informations opw-1943556 closes odoo/odoo#31439 --- addons/maintenance/i18n/maintenance.pot | 2 +- addons/maintenance/models/maintenance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/maintenance/i18n/maintenance.pot b/addons/maintenance/i18n/maintenance.pot index 78a2a5a9797..561596ba52d 100644 --- a/addons/maintenance/i18n/maintenance.pot +++ b/addons/maintenance/i18n/maintenance.pot @@ -410,7 +410,7 @@ msgstr "" #. module: maintenance #: model:ir.model.fields,help:maintenance.field_maintenance_request__duration -msgid "Duration in minutes and seconds." +msgid "Duration in hours and minutes." msgstr "" #. module: maintenance diff --git a/addons/maintenance/models/maintenance.py b/addons/maintenance/models/maintenance.py index fe1335c1d31..7071f33d99b 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 and minutes.") @api.multi def archive_equipment_request(self):