Skip to content

Commit

Permalink
[FIX] maintenance: translate team name
Browse files Browse the repository at this point in the history
If the name of a crm.team is translated, why not the one of a maintenance.team

opw-805838
  • Loading branch information
mart-e committed Jan 30, 2018
1 parent 5ae494f commit ed54418
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions addons/maintenance/i18n/maintenance.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ......."
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion addons/maintenance/models/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed54418

Please sign in to comment.