[MOV] hr_equipment to maintenance
hr_equipment module is renamed to maintenance. No change is performed to the module itself. It prepares further changes, mainly splitting maintenance from hr_maintenance.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import hr_equipment
|
||||
import res_config
|
||||
@@ -10,13 +10,13 @@
|
||||
'depends': ['hr'],
|
||||
'summary': 'Equipments, Assets, Internal Hardware, Allocation Tracking',
|
||||
'data': [
|
||||
'security/hr_equipment.xml',
|
||||
'security/maintenance.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'data/hr_equipment_data.xml',
|
||||
'views/res_config_views.xml',
|
||||
'views/hr_equipment_views.xml',
|
||||
'data/maintenance_data.xml',
|
||||
'views/maintenance_config_settings_views.xml',
|
||||
'views/maintenance_views.xml',
|
||||
],
|
||||
'demo': ['data/hr_equipment_demo.xml'],
|
||||
'demo': ['data/maintenance_demo.xml'],
|
||||
'installable': True,
|
||||
'application': True,
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import maintenance
|
||||
import maintenance_config_settings
|
||||
+3
-3
@@ -82,7 +82,7 @@ class HrEquipment(models.Model):
|
||||
def _track_subtype(self, init_values):
|
||||
self.ensure_one()
|
||||
if ('employee_id' in init_values and self.employee_id) or ('department_id' in init_values and self.department_id):
|
||||
return 'hr_equipment.mt_mat_assign'
|
||||
return 'maintenance.mt_mat_assign'
|
||||
return super(HrEquipment, self)._track_subtype(init_values)
|
||||
|
||||
@api.multi
|
||||
@@ -227,9 +227,9 @@ class HrEquipmentRequest(models.Model):
|
||||
def _track_subtype(self, init_values):
|
||||
self.ensure_one()
|
||||
if 'stage_id' in init_values and self.stage_id.sequence <= 1:
|
||||
return 'hr_equipment.mt_req_created'
|
||||
return 'maintenance.mt_req_created'
|
||||
elif 'stage_id' in init_values and self.stage_id.sequence > 1:
|
||||
return 'hr_equipment.mt_req_status'
|
||||
return 'maintenance.mt_req_status'
|
||||
return super(HrEquipmentRequest, self)._track_subtype(init_values)
|
||||
|
||||
name = fields.Char('Subjects', required=True)
|
||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,3 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import test_hr_equipment
|
||||
import test_maintenance
|
||||
Reference in New Issue
Block a user