tictac/itis_hr_leave_extend/views/hr_setting_view.xml

31 lines
1.5 KiB
XML
Raw Normal View History

2019-05-06 09:40:59 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_human_resources_configuration" model="ir.ui.view">
<field name="name">hr settings</field>
<field name="model">hr.config.settings</field>
<field name="inherit_id" ref="hr.view_human_resources_configuration"/>
<field name="arch" type="xml">
<group name="contract_grp" position='after'>
<group name="hr_ot_leave">
<label for="id" string="Analytic account"/>
<div>
<div>
<label for="leave_account_id" string="for Leave " class="oe_inline"/>
<field name="leave_account_id" domain="[('type', 'in', ['normal', 'contract']), ('state', '!=', 'close'), ('use_timesheets', '=', 1)]" options="{'no_open': True, 'no_create': True, 'no_create_edit':True}" class="oe_inline"/>
</div>
<div>
<label for="ot_leave_account_id" string="for Overtime Leave " class="oe_inline"/>
<field name="ot_leave_account_id" domain="[('type', 'in', ['normal', 'contract']), ('state', '!=', 'close'), ('use_timesheets', '=', 1)]" options="{'no_open': True, 'no_create': True, 'no_create_edit':True}" class="oe_inline"/>
</div>
</div>
</group>
</group>
</field>
</record>
</data>
</openerp>