From 132dcc978674680af76a41d3e077d62a3e46dd9b Mon Sep 17 00:00:00 2001
From: Fabien Pinckaers <fp@openerp.com>
Date: Thu, 10 Sep 2015 20:45:14 +0200
Subject: [PATCH] [IMP] Equipment --> IT Asset

---
 addons/hr_equipment/__openerp__.py            |  6 ++---
 addons/hr_equipment/models/hr_equipment.py    | 16 ++++++-------
 .../hr_equipment/views/hr_equipment_views.xml | 24 +++++++++----------
 3 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/addons/hr_equipment/__openerp__.py b/addons/hr_equipment/__openerp__.py
index 43eb8e635094..bb61a7798c78 100644
--- a/addons/hr_equipment/__openerp__.py
+++ b/addons/hr_equipment/__openerp__.py
@@ -1,14 +1,14 @@
 # -*- coding: utf-8 -*-
 
 {
-    'name': 'Track Employees Equipment',
+    'name': 'IT Assets',
     'version': '1.0',
     'sequence': 125,
     'description': """
-        Track employees' equipment and manage its allocation """,
+        Track employees' IT assets: computers, printers, software licenses and manage makntenance requests.""",
     'author': 'Odoo S.A.',
     'depends': ['hr'],
-    'summary': 'Internal Equipments, Allocation Tracking',
+    'summary': 'Equipments, IT Assets, Internal Hardware',
     'data': [
         'security/hr_equipment.xml',
         'security/ir.model.access.csv',
diff --git a/addons/hr_equipment/models/hr_equipment.py b/addons/hr_equipment/models/hr_equipment.py
index cc43ade0da5f..b3196ad46b9d 100644
--- a/addons/hr_equipment/models/hr_equipment.py
+++ b/addons/hr_equipment/models/hr_equipment.py
@@ -9,7 +9,7 @@ class HrEquipmentStage(models.Model):
     """ Model for case stages. This models the main stages of a Maintenance Request management flow. """
 
     _name = 'hr.equipment.stage'
-    _description = 'Equipment Stage'
+    _description = 'Maintenance Stage'
     _order = 'sequence, id'
 
     name = fields.Char('Name', required=True, translate=True)
@@ -22,7 +22,7 @@ class HrEquipmentCategory(models.Model):
     _name = 'hr.equipment.category'
     _inherits = {"mail.alias": "alias_id"}
     _inherit = ['mail.thread']
-    _description = 'Equipment Category'
+    _description = 'Asset Category'
 
     @api.one
     @api.depends('equipment_ids')
@@ -76,7 +76,7 @@ class HrEquipmentCategory(models.Model):
 class HrEquipment(models.Model):
     _name = 'hr.equipment'
     _inherit = ['mail.thread']
-    _description = 'Equipment'
+    _description = 'IT Assets'
 
     @api.multi
     def _track_subtype(self, init_values):
@@ -105,11 +105,11 @@ class HrEquipment(models.Model):
             recs = self.search([('name', operator, name)] + args, limit=limit)
         return recs.name_get()
 
-    name = fields.Char('Equipment Name', required=True, translate=True)
+    name = fields.Char('Asset Name', required=True, translate=True)
     user_id = fields.Many2one('res.users', string='Technician', track_visibility='onchange')
     employee_id = fields.Many2one('hr.employee', string='Assigned to Employee', track_visibility='onchange')
     department_id = fields.Many2one('hr.department', string='Assigned to Department', track_visibility='onchange')
-    category_id = fields.Many2one('hr.equipment.category', string='Equipment Category', track_visibility='onchange')
+    category_id = fields.Many2one('hr.equipment.category', string='Asset Category', track_visibility='onchange')
     partner_id = fields.Many2one('res.partner', string='Vendor', domain="[('supplier', '=', 1)]")
     partner_ref = fields.Char('Vendor Reference')
     model = fields.Char('Model')
@@ -149,7 +149,7 @@ class HrEquipment(models.Model):
         self.user_id = self.category_id.user_id
 
     _sql_constraints = [
-        ('serial_no', 'unique(serial_no)', "The serial number of this equipment must be unique !"),
+        ('serial_no', 'unique(serial_no)', "Another asset already exists with this serial number!"),
     ]
 
     @api.model
@@ -210,7 +210,7 @@ class HrEquipment(models.Model):
 class HrEquipmentRequest(models.Model):
     _name = 'hr.equipment.request'
     _inherit = ['mail.thread']
-    _description = 'Equipment Request'
+    _description = 'Maintenance Requests'
 
     @api.returns('self')
     def _default_employee_get(self):
@@ -235,7 +235,7 @@ class HrEquipmentRequest(models.Model):
     employee_id = fields.Many2one('hr.employee', string='Employee', default=_default_employee_get)
     department_id = fields.Many2one('hr.department', string='Department')
     category_id = fields.Many2one('hr.equipment.category', string='Category')
-    equipment_id = fields.Many2one('hr.equipment', string='Equipment', select=True)
+    equipment_id = fields.Many2one('hr.equipment', string='Asset', select=True)
     user_id = fields.Many2one('res.users', string='Assigned to', track_visibility='onchange')
     stage_id = fields.Many2one('hr.equipment.stage', string='Stage', track_visibility='onchange', default=_default_stage)
     priority = fields.Selection([('0', 'Very Low'), ('1', 'Low'), ('2', 'Normal'), ('3', 'High')], string='Priority')
diff --git a/addons/hr_equipment/views/hr_equipment_views.xml b/addons/hr_equipment/views/hr_equipment_views.xml
index 3a03245992d8..9050a135dff3 100644
--- a/addons/hr_equipment/views/hr_equipment_views.xml
+++ b/addons/hr_equipment/views/hr_equipment_views.xml
@@ -345,7 +345,7 @@
                 <filter string="Assigned" domain="['|', ('employee_id', '!=', False), ('department_id', '!=', False)]"/>
                 <filter string="Available" domain="[('employee_id', '=', False), ('department_id', '=', False)]"/>
                 <separator/>
-                <filter string="My Equipments" domain="[('employee_id.user_id', '=', uid)]"/>
+                <filter string="My Assets" domain="[('employee_id.user_id', '=', uid)]"/>
                 <separator/>
                 <filter string="Important Messages" name="message_needaction" domain="[('message_needaction','=',True)]"/>
                 <group  expand='0' string='Group by...'>
@@ -361,7 +361,7 @@
     </record>
 
     <record id="hr_equipment_action" model="ir.actions.act_window">
-        <field name="name">Equipments</field>
+        <field name="name">IT Assets</field>
         <field name="res_model">hr.equipment</field>
         <field name="view_mode">kanban,tree,form</field>
         <field name="view_id" ref="hr_equipment_view_kanban"/>
@@ -369,8 +369,8 @@
             <p class="oe_view_nocontent_create">
                 Click to add a new equipment.
             </p><p>
-                This application helps you to track all equipment allocated to employees.
-                Create some laptop, printer or phone and link each equipment to an employee or departement.
+                This application helps you to track equipments used by employees.
+                Create some laptops, printers or phones and link each asset to an employee or departement.
                 You will manage allocations, issues and maintenance of equipment.
             </p>
         </field>
@@ -378,7 +378,7 @@
 
     <!-- hr.equiment : actions -->
     <record id="hr_equipment_action_from_category_form" model="ir.actions.act_window">
-        <field name="name">Equipments</field>
+        <field name="name">Assets</field>
         <field name="res_model">hr.equipment</field>
         <field name="view_mode">kanban,tree,form</field>
         <field name="search_view_id" ref="hr_equipment_view_search"/>
@@ -391,7 +391,7 @@
             <p class="oe_view_nocontent_create">
                 Click to add a new Engine.
             </p><p>
-                This application helps you to track all equipment allocated to employees.
+                This application helps you to track equipments used by employees.
                 Create some laptop, printer or phone and link each equipment to an employee or departement.
                 You will manage allocations, issues and mainteannce of equipment.
             </p>
@@ -410,7 +410,7 @@
                         class="oe_stat_button"
                         icon="fa-laptop"
                         type="action">
-                        <field string="Equipment" name="equipment_count" widget="statinfo"/>
+                        <field string="Assets" name="equipment_count" widget="statinfo"/>
                     </button>
                     <button name="%(hr_equipment_request_action_link)d"
                         type="action"
@@ -475,7 +475,7 @@
 
     <!-- hr.equipment.category : actions -->
     <record id="hr_equipment_category_action" model="ir.actions.act_window">
-        <field name="name">Equipment Categories</field>
+        <field name="name">Asset Categories</field>
         <field name="res_model">hr.equipment.category</field>
         <field name="view_mode">tree,form</field>
         <field name="view_id" ref="hr_equipment_category_view_tree"/>
@@ -528,7 +528,7 @@
     <!-- Menu items hierachy -->
     <menuitem
         id="menu_equipment_title"
-        name="Equipments"
+        name="IT Assets"
         web_icon="hr_equipment,static/description/icon.png"
         sequence="110"/>
 
@@ -549,7 +549,7 @@
 
     <menuitem
         id="menu_hr_equipment_form"
-        name="Equipments"
+        name="Assets"
         parent="menu_equipment_title"
         action="hr_equipment_action"
         groups="base.group_hr_manager,base.group_hr_user,base.group_user"
@@ -564,7 +564,7 @@
 
     <menuitem
         id="menu_equipment_cat"
-        name="Equipment Categories"
+        name="Asset Categories"
         parent="menu_equipment_configuration"
         action="hr_equipment_category_action"
         groups="base.group_no_one"
@@ -581,7 +581,7 @@
     <data noupdate="1">
         <!-- After installation of the module, open the related menu -->
         <record id="action_client_hr_equipment_menu" model="ir.actions.client">
-            <field name="name">Open HR Menu</field>
+            <field name="name">Open Assets Menu</field>
             <field name="tag">reload</field>
             <field name="params" eval="{'menu_id': ref('menu_equipment_title')}"/>
         </record>
-- 
GitLab