[IMP] HR : set button for show payroll modules

bzr revid: dbr@tinyerp.com-20120404064758-yi7mcev0ma0ibg2o
This commit is contained in:
DBR (OpenERP)
2012-04-04 12:17:58 +05:30
parent e120f1e511
commit 2a2ac97a97
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -45,4 +45,4 @@ class human_resources_configuration(osv.osv_memory):
human_resources_configuration()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+8
View File
@@ -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">