[IMP] HR : set button for show payroll modules
bzr revid: dbr@tinyerp.com-20120404064758-yi7mcev0ma0ibg2o
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user