From 068619bf8fdecd3c4548f87c7cd0a10e857d3cf9 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 10 Apr 2012 13:52:19 +0200 Subject: [PATCH] [IMP] hr.config.settings: improve code and form layout bzr revid: rco@openerp.com-20120410115219-78ydkfe521am7g5n --- addons/hr/res_config.py | 21 ++++---- addons/hr/res_config_view.xml | 49 ++++++++++++------- .../hr_evaluation/hr_evaluation_installer.xml | 9 ++-- .../hr_expense/hr_expense_installer_view.xml | 11 ++--- addons/hr_holidays/hr_holidays_view.xml | 3 -- addons/hr_payroll/res_config.py | 6 +-- addons/hr_payroll/res_config_view.xml | 10 ++-- addons/hr_recruitment/res_config.py | 12 +++-- addons/hr_recruitment/res_config_view.xml | 35 ++++++------- addons/hr_timesheet_sheet/res_config.py | 41 ++++++++-------- addons/hr_timesheet_sheet/res_config_view.xml | 21 +++----- 11 files changed, 106 insertions(+), 112 deletions(-) diff --git a/addons/hr/res_config.py b/addons/hr/res_config.py index 4f794c55a83..5f92f2db5a6 100644 --- a/addons/hr/res_config.py +++ b/addons/hr/res_config.py @@ -20,27 +20,24 @@ ############################################################################## from osv import fields, osv -from lxml import etree -class human_resources_configuration(osv.osv_memory): +class hr_config_settings(osv.osv_memory): _name = 'hr.config.settings' _inherit = 'res.config.settings' _columns = { - 'module_hr_timesheet_sheet': fields.boolean('Manage Timesheet and Attendances', - help ="""It installs the hr_timesheet_sheet module."""), + 'module_hr_timesheet_sheet': fields.boolean('Manage Timesheets and Attendances', + help ="""This installs the module hr_timesheet_sheet."""), 'module_hr_holidays': fields.boolean('Manage Holidays', - help ="""It installs the hr_holidays module."""), + help ="""This installs the module hr_holidays."""), 'module_hr_expense': fields.boolean('Manage Employees Expenses', - help ="""It installs the hr_expense module."""), + help ="""This installs the module hr_expense."""), 'module_hr_recruitment': fields.boolean('Manage Recruitment Process', - help ="""It installs the hr_payroll module."""), + help ="""This installs the module hr_recruitment."""), 'module_hr_contract': fields.boolean('Manage Employees Contracts', - help ="""It installs the hr_contract module."""), + help ="""This installs the module hr_contract."""), 'module_hr_evaluation': fields.boolean('Manage Appraisals Process', - help ="""It installs the hr_evaluation module."""), - } - -human_resources_configuration() + help ="""This installs the module hr_evaluation."""), + } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/hr/res_config_view.xml b/addons/hr/res_config_view.xml index ee90372f22d..4dc13bb9dab 100644 --- a/addons/hr/res_config_view.xml +++ b/addons/hr/res_config_view.xml @@ -5,7 +5,7 @@ Payroll ir.module.module kanban,tree,form - [('shortdesc','ilike','Payroll'),('state','=','uninstalled'),('name','!=','hr_payroll_account')] + [('state','=','uninstalled'), ('name','ilike','payroll'), ('name','!=','hr_payroll_account')] @@ -15,23 +15,38 @@
- -