summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDBR (OpenERP) <dbr@tinyerp.com>2012-04-04 18:39:48 +0530
committerDBR (OpenERP) <dbr@tinyerp.com>2012-04-04 18:39:48 +0530
commit2a6fe272b3feeb7af8aa29f4bbfe7fad0bb70225 (patch)
tree0c8a36bf7a735d4ad35990118bbe4b832c0444b1
parent704b9993723f8fed64899e27b243ef760ab7abb1 (diff)
[IMP] HR : Set attrs for account payroll group
bzr revid: dbr@tinyerp.com-20120404130948-opg24wywr0gvq1nb
-rw-r--r--addons/hr/res_config.py2
-rw-r--r--addons/hr/res_config_view.xml3
2 files changed, 4 insertions, 1 deletions
diff --git a/addons/hr/res_config.py b/addons/hr/res_config.py
index 853b198bd38..bdef8bb5cf8 100644
--- a/addons/hr/res_config.py
+++ b/addons/hr/res_config.py
@@ -33,6 +33,8 @@ class human_resources_configuration(osv.osv_memory):
help ="""It installs the hr_holidays module."""),
'module_hr_payroll_account': fields.boolean('Manage Account Payroll',
help ="""It installs the hr_payroll_account module."""),
+ 'module_hr_payroll': fields.boolean('Manage HR Payroll',
+ help ="""It installs the hr_payroll module."""),
'module_hr_expense': fields.boolean('Manage Employees Expenses',
help ="""It installs the hr_expense module."""),
'module_hr_recruitment': fields.boolean('Manage Recruitment Process',
diff --git a/addons/hr/res_config_view.xml b/addons/hr/res_config_view.xml
index d6eeba972e0..d002e22ac09 100644
--- a/addons/hr/res_config_view.xml
+++ b/addons/hr/res_config_view.xml
@@ -22,6 +22,7 @@
<button name="%(action_create_hr_employee_installer)d" string="Employees" type="action" icon="gtk-apply"/>
<field name="module_hr_timesheet_sheet"/>
<field name="module_hr_holidays"/>
+ <field name="module_hr_payroll"/>
<label string="Configure Your Salary Rules :"/>
<button string="Salary Rules" icon="gtk-go-forward" name="%(open_payroll1_modules)d" type="action" />
</group>
@@ -32,7 +33,7 @@
<field name="module_hr_evaluation"/>
<field name="module_hr_contract"/>
</group>
- <group colspan="4" col="4">
+ <group name="Account Payroll" colspan="4" col="4" attrs="{'invisible': [('module_hr_payroll','=',False)]}">
<separator string="Account Payroll" colspan="4"/>
<field name="module_hr_payroll_account"/>
</group>