30 lines
1.6 KiB
XML
30 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="1">
|
|
<!-- After installation of the module, open the related menu -->
|
|
<record id="base.open_menu" model="ir.actions.todo">
|
|
<field name="action_id" ref="hr.action_client_hr_menu"/>
|
|
<field name="state">open</field>
|
|
</record>
|
|
</data>
|
|
<data>
|
|
<record id="view_hr_timehseet_config_settings" model="ir.ui.view">
|
|
<field name="name">hr settings for timesheets</field>
|
|
<field name="model">hr.config.settings</field>
|
|
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='hr_timesheet']" position="after">
|
|
<div>
|
|
<label for="timesheet_range" attrs="{'invisible': [('module_hr_timesheet_sheet','=',False)]}"/>
|
|
<field name="timesheet_range" attrs="{'invisible': [('module_hr_timesheet_sheet','=',False)], 'required': [('module_hr_timesheet_sheet','=',True)]}" class="oe_inline"/>
|
|
</div>
|
|
<div>
|
|
<label for="timesheet_max_difference" attrs="{'invisible': [('module_hr_timesheet_sheet','=',False)]}"/>
|
|
<field name="timesheet_max_difference" attrs="{'invisible': [('module_hr_timesheet_sheet','=',False)], 'required': [('module_hr_timesheet_sheet','=',True)]}" class="oe_inline"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|