From ed54418d629e1ff905ccaf2eb3e779ccb3716f27 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 30 Jan 2018 14:42:09 +0100 Subject: [PATCH] [FIX] maintenance: translate team name If the name of a crm.team is translated, why not the one of a maintenance.team opw-805838 --- addons/maintenance/i18n/maintenance.pot | 19 +++++++++++++++++-- addons/maintenance/models/maintenance.py | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/addons/maintenance/i18n/maintenance.pot b/addons/maintenance/i18n/maintenance.pot index 75950bce3f6..21655e2008e 100644 --- a/addons/maintenance/i18n/maintenance.pot +++ b/addons/maintenance/i18n/maintenance.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-11-30 13:12+0000\n" -"PO-Revision-Date: 2017-11-30 13:12+0000\n" +"POT-Creation-Date: 2018-01-30 13:41+0000\n" +"PO-Revision-Date: 2018-01-30 13:41+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -471,6 +471,11 @@ msgstr "" msgid "In Progress" msgstr "" +#. module: maintenance +#: model:maintenance.team,name:maintenance.equipment_team_maintenance +msgid "Internal Maintenance" +msgstr "" + #. module: maintenance #: model:ir.ui.view,arch_db:maintenance.hr_equipment_request_view_form msgid "Internal Note ......." @@ -631,6 +636,11 @@ msgstr "" msgid "Maintenance: generate preventive maintenance requests" msgstr "" +#. module: maintenance +#: model:maintenance.team,name:maintenance.equipment_team_metrology +msgid "Metrology" +msgstr "" + #. module: maintenance #: model:ir.model.fields,field_description:maintenance.field_maintenance_equipment_model msgid "Model" @@ -965,6 +975,11 @@ msgstr "" msgid "Status changed" msgstr "" +#. module: maintenance +#: model:maintenance.team,name:maintenance.equipment_team_subcontractor +msgid "Subcontractor" +msgstr "" + #. module: maintenance #: model:ir.model.fields,field_description:maintenance.field_maintenance_request_name msgid "Subjects" diff --git a/addons/maintenance/models/maintenance.py b/addons/maintenance/models/maintenance.py index d46b688ca79..53b450baee7 100644 --- a/addons/maintenance/models/maintenance.py +++ b/addons/maintenance/models/maintenance.py @@ -368,7 +368,7 @@ class MaintenanceTeam(models.Model): _name = 'maintenance.team' _description = 'Maintenance Teams' - name = fields.Char(required=True) + name = fields.Char(required=True, translate=True) member_ids = fields.Many2many('res.users', 'maintenance_team_users_rel', string="Team Members") color = fields.Integer("Color Index", default=0) request_ids = fields.One2many('maintenance.request', 'maintenance_team_id', copy=False)