You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

79 lines
3.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- hr_contract views-->
<record id="hr_contract_view_form" model="ir.ui.view">
<field name="name">
hr.contract.view.form.inherit.ent.hr.gratuity.settlement
</field>
<field name="model">hr.contract</field>
<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
<field name="arch" type="xml">
<xpath expr="/form/header" position="inside">
<button name="action_approve" string="Approve"
class="oe_highlight" type="object"
invisible="state != 'probation'"
groups="hr.group_hr_manager"/>
</xpath>
<xpath expr="//field[@name='job_id']" position="before">
<field name="currency_id" invisible="1"/>
<field name="company_country_id" invisible="1"/>
</xpath>
<xpath expr="//page[@name='information']" position="attributes">
<attribute name="invisible">wage_type == 'hourly'</attribute>
</xpath>
<xpath expr="//field[@name='hr_responsible_id']" position="after">
<field name="trial_date_end" invisible="1"/>
</xpath>
<xpath expr="/form/sheet/notebook/page[@name='information']/group/group[@name='salary']"
position="inside">
<field name="training_amount"/>
</xpath>
<xpath expr="//page[@name='information']" position="after">
<page string="Salary Information"
name="information_salary_hourly"
invisible="wage_type != 'hourly'">
<group name="main_info_hourly">
<group name="salary_and_advantages_hourly"
string="Hourly Advantages in Cash">
<field name="wage_type"/>
<label for="wage"/>
<div class="o_row" name="wage">
<field name="hourly_wage" nolabel="1"/>
<span>/ hour</span>
</div>
</group>
</group>
</page>
</xpath>
<xpath expr="/form/sheet/notebook/page[@name='information']"
position="after">
<page string="Probationary Details" name="probation"
invisible="trial_date_end == False">
<group string="Probationary Details" name="training_info">
<field name="training_info"
placeholder="Probationary Details"/>
<field name="waiting_for_approval" invisible="1"/>
<field name="is_approve" invisible="1"/>
</group>
</page>
</xpath>
</field>
</record>
<!--HR Contract windows action-->
<record id="hr_contract_approvals_action" model="ir.actions.act_window">
<field name="name">Contracts For Approvals</field>
<field name="res_model">hr.contract</field>
<field name="view_mode">list,form</field>
<field name="domain">[('state', '=', 'probation'),('trial_date_end', '&lt;=',
context_today().strftime('%Y-%m-%d'))]
</field>
<field name="context">{}</field>
</record>
<menuitem
id="menu_hr_employee"
name="Approvals"
action="hr_contract_approvals_action"
groups="hr.group_hr_manager"
parent="hr.menu_hr_employee_payroll"/>
</odoo>