From 024546919eca0872b57b933c5ca67b99ba472ef8 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 15 Jun 2015 14:36:56 +0200 Subject: [PATCH] [IMP] employees form view : Usability improvements - remove otherid field from the model, and the reports - reorganize several fields on the form - removed group_multi_department group, departments are always activated, as 3 departments are now in the datas - departments menuitem is accessible to the hr officers and managers only - removed all the configurations in the employee root menu - moved payroll country module selection to payroll configuration - removed useless fields from the form : attendance state, goals_ids, remaining leaves, as they are accessible via stat buttons, kanban views, etc. Conflicts: addons/hr/hr_view.xml addons/hr_holidays/hr_holidays_view.xml --- addons/hr/hr.py | 1 - addons/hr/hr_view.xml | 37 +++--- addons/hr/res_config.py | 4 - addons/hr/res_config_view.xml | 123 ------------------ addons/hr/security/hr_security.xml | 5 - addons/hr_attendance/hr_attendance_view.xml | 16 --- addons/hr_contract/hr_contract_view.xml | 6 +- addons/hr_expense/hr_expense_view.xml | 8 +- .../report/hr_expense_report_view.xml | 4 +- addons/hr_gamification/views/gamification.xml | 3 - addons/hr_holidays/hr_holidays_view.xml | 2 +- addons/hr_payroll/res_config_view.xml | 13 ++ addons/hr_payroll/views/report_payslip.xml | 4 +- .../views/report_payslipdetails.xml | 4 +- .../hr_recruitment_dashboard.xml | 2 +- addons/hr_recruitment/hr_recruitment_data.xml | 2 +- addons/hr_recruitment/hr_recruitment_view.xml | 4 +- .../hr_timesheet_sheet_view.xml | 12 +- addons/hr_timesheet_sheet/res_config_view.xml | 19 --- .../views/report_hryearlysalary.xml | 7 +- .../views/report_payslipdetails.xml | 2 +- 21 files changed, 61 insertions(+), 217 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index d1a85a17005..62ce66995ec 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -165,7 +165,6 @@ class hr_employee(osv.osv): 'ssnid': fields.char('SSN No', help='Social Security Number'), 'sinid': fields.char('SIN No', help="Social Insurance Number"), 'identification_id': fields.char('Identification No'), - 'otherid': fields.char('Other Id'), 'gender': fields.selection([('male', 'Male'), ('female', 'Female'), ('other', 'Other')], 'Gender'), 'marital': fields.selection([('single', 'Single'), ('married', 'Married'), ('widower', 'Widower'), ('divorced', 'Divorced')], 'Marital Status'), 'department_id': fields.many2one('hr.department', 'Department'), diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 597bd6f321f..0ec9f1ae48a 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -30,12 +30,12 @@

-