[FIX] hr_equipment: rename from it assets to equipments

This is a partial revert of 132dcc9786. Indeed the
hr_equipment module can be used to track any kind of equipment, not only
IT assets.
This commit is contained in:
Thibault Delavallée
2015-09-25 16:30:12 +02:00
parent a4869fce23
commit dec333d8a4
3 changed files with 16 additions and 15 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
# -*- coding: utf-8 -*-
{
'name': 'IT Assets',
'name': 'Equipments',
'version': '1.0',
'sequence': 125,
'description': """
Track employees' IT assets: computers, printers, software licenses and manage maintenance requests.""",
Track employees' equipment and manage maintenance requests.""",
'author': 'Odoo S.A.',
'depends': ['hr'],
'summary': 'Equipments, IT Assets, Internal Hardware',
'summary': 'Equipments, Assets, Internal Hardware, Allocation Tracking',
'data': [
'security/hr_equipment.xml',
'security/ir.model.access.csv',
+1 -1
View File
@@ -76,7 +76,7 @@ class HrEquipmentCategory(models.Model):
class HrEquipment(models.Model):
_name = 'hr.equipment'
_inherit = ['mail.thread']
_description = 'IT Assets'
_description = 'Equipment'
@api.multi
def _track_subtype(self, init_values):
@@ -343,7 +343,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 Assets" domain="[('employee_id.user_id', '=', uid)]"/>
<filter string="My Equipments" domain="[('employee_id.user_id', '=', uid)]"/>
<separator/>
<filter string="Important Messages" name="message_needaction" domain="[('message_needaction','=',True)]"/>
<group expand='0' string='Group by...'>
@@ -359,7 +359,7 @@
</record>
<record id="hr_equipment_action" model="ir.actions.act_window">
<field name="name">IT Assets</field>
<field name="name">Equipments</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"/>
@@ -368,15 +368,16 @@
Click to add a new equipment.
</p><p>
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.
Create some laptop, printer or phone and link each equipment to
an employee or departement. You will manage allocations, issues
and maintenance of equipment.
</p>
</field>
</record>
<!-- hr.equiment : actions -->
<record id="hr_equipment_action_from_category_form" model="ir.actions.act_window">
<field name="name">Assets</field>
<field name="name">Equipments</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"/>
@@ -408,7 +409,7 @@
class="oe_stat_button"
icon="fa-laptop"
type="action">
<field string="Assets" name="equipment_count" widget="statinfo"/>
<field string="Equipments" name="equipment_count" widget="statinfo"/>
</button>
<button name="%(hr_equipment_request_action_link)d"
type="action"
@@ -473,7 +474,7 @@
<!-- hr.equipment.category : actions -->
<record id="hr_equipment_category_action" model="ir.actions.act_window">
<field name="name">Asset Categories</field>
<field name="name">Equipment 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"/>
@@ -526,7 +527,7 @@
<!-- Menu items hierachy -->
<menuitem
id="menu_equipment_title"
name="IT Assets"
name="Equipments"
web_icon="hr_equipment,static/description/icon.png"
sequence="110"/>
@@ -547,7 +548,7 @@
<menuitem
id="menu_hr_equipment_form"
name="Assets"
name="Equipments"
parent="menu_equipment_title"
action="hr_equipment_action"
groups="base.group_hr_manager,base.group_hr_user,base.group_user"
@@ -562,7 +563,7 @@
<menuitem
id="menu_equipment_cat"
name="Asset Categories"
name="Equipment Categories"
parent="menu_equipment_configuration"
action="hr_equipment_category_action"
groups="base.group_no_one"
@@ -579,7 +580,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 Assets Menu</field>
<field name="name">Open Equipments Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('menu_equipment_title')}"/>
</record>