diff options
| author | DBR (OpenERP) <dbr@tinyerp.com> | 2012-04-04 12:17:58 +0530 |
|---|---|---|
| committer | DBR (OpenERP) <dbr@tinyerp.com> | 2012-04-04 12:17:58 +0530 |
| commit | 2a2ac97a97e52a12d041b3fb7c43115cc040df2b (patch) | |
| tree | c9c997f6e0d935dd2254d5c43044abed7069cbaf | |
| parent | e120f1e5116f9be246e8c91559401da4fb690a58 (diff) | |
[IMP] HR : set button for show payroll modules
bzr revid: dbr@tinyerp.com-20120404064758-yi7mcev0ma0ibg2o
| -rw-r--r-- | addons/hr/res_config.py | 2 | ||||
| -rw-r--r-- | addons/hr/res_config_view.xml | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/addons/hr/res_config.py b/addons/hr/res_config.py index 6dca7fedae4..cd6a12016de 100644 --- a/addons/hr/res_config.py +++ b/addons/hr/res_config.py @@ -45,4 +45,4 @@ class human_resources_configuration(osv.osv_memory): human_resources_configuration() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file +# 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 1233b41505a..c2db8a934cd 100644 --- a/addons/hr/res_config_view.xml +++ b/addons/hr/res_config_view.xml @@ -1,6 +1,13 @@ <openerp> <data> + <record id="open_payroll1_modules" model="ir.actions.act_window"> + <field name="name">Payroll</field> + <field name="res_model">ir.module.module</field> + <field name="view_mode">kanban,tree,form</field> + <field name="domain">[('shortdesc','ilike','Payroll'),('state','=','uninstalled')]</field> + </record> + <record id="view_human_resources_configuration" model="ir.ui.view"> <field name="name">Human Resources Application</field> <field name="model">human.resources.configuration</field> @@ -16,6 +23,7 @@ <field name="module_hr_timesheet_sheet"/> <field name="module_hr_holidays"/> <field name="module_hr_payroll"/> + <button string="Install payroll" icon="gtk-go-forward" name="%(open_payroll1_modules)d" type="action" attrs="{'invisible': [('module_hr_payroll','=',False)]}"/> </group> <separator string="Additional Features" colspan="4"/> <group colspan="4" col="4"> |
