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.
 
 
 
 
 

76 lines
3.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- hr_training views-->
<record id="hr_training_view_list" model="ir.ui.view">
<field name="name">hr.training.view.list</field>
<field name="model">hr.training</field>
<field name="arch" type="xml">
<list string="Training Details" delete="0" create="0">
<field name="employee_id"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="state"/>
</list>
</field>
</record>
<!--Form view of the model hr.training-->
<record id="hr_training_view_form" model="ir.ui.view">
<field name="name">hr.training.view.form</field>
<field name="model">hr.training</field>
<field name="arch" type="xml">
<form string="Training Details" delete="0" create="0" edit="0">
<sheet>
<group>
<div class="oe_title">
<h3>
<field name="employee_id" readonly="1"/>
</h3>
</div>
</group>
<group>
<group>
<field name="start_date" style="width:100px"
readonly="1"/>
<field name="end_date" style="width:100px"
readonly="1"/>
</group>
<group>
<field name="state" style="width:100px"
readonly="1"/>
</group>
</group>
<separator string="Leave Information"/>
<field name="leave_ids" readonly="1">
<list>
<field name="employee_id"/>
<field name="department_id"/>
<field name="holiday_status_id"/>
<field name="name"/>
<field name="date_from"/>
<field name="date_to"/>
<field name="duration_display"/>
<field name="state"/>
</list>
</field>
</sheet>
</form>
</field>
</record>
<!--Windows action of the model hr.training-->
<record id="hr_training_action" model="ir.actions.act_window">
<field name="name">Probation Details</field>
<field name="res_model">hr.training</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Create Probation Details
</p>
</field>
</record>
<!--Menuitem for the model hr.training-->
<menuitem
id="menu_hr_training"
name="Probation Details"
groups="base.group_no_one"
action="hr_training_action"
parent="hr.hr_menu_hr_reports"/>
</odoo>