odoo18/addons_extensions/hr_employee_extended/views/hr_employee.xml

207 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="hr_skills_hr_employee_view_form_inherit" model="ir.ui.view">
<field name="name">hr.employee.skills.form.inherit</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr_skills.hr_employee_view_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='skills_resume']" position="inside">
<div>
<div>
<separator string="Employer History"/>
<!-- This field uses a custom list view rendered by the 'resume_one2many' widget.
Adding fields in the list arch below makes them accessible to the widget
-->
<field mode="list" nolabel="1" name="employer_history">
<list string="Employer Details">
<field name="company_name"/>
<field name="designation"/>
<field name="date_of_joining"/>
<field name="last_working_day"/>
<field name="ctc"/>
<field name="employee_id" column_invisible="1"/>
</list>
<form string="Employer Details">
<sheet>
<group>
<group>
<field name="company_name"/>
<field name="designation"/>
</group>
<group>
<field name="date_of_joining"/>
<field name="last_working_day"/>
<field name="ctc"/>
<field name="employee_id" invisible="1"/>
</group>
</group>
</sheet>
</form>
</field>
</div>
<div>
<separator string="Education History"/>
<field mode="list" nolabel="1" name="education_history"
class="mt-2">
<list string="Education Details">
<field name="education_type"/>
<field name="name"/>
<field name="university"/>
<field name="start_year"/>
<field name="end_year"/>
<field name="marks_or_grade"/>
<field name="employee_id" column_invisible="1"/>
</list>
<form string="Education Details">
<sheet>
<group>
<group>
<field name="education_type"/>
<field name="name"/>
<field name="university"/>
</group>
<group>
<field name="start_year"/>
<field name="end_year"/>
<field name="marks_or_grade"/>
<field name="employee_id" invisible="1"/>
</group>
</group>
</sheet>
</form>
</field>
</div>
</div>
</xpath>
</field>
</record>
<record id="view_employee_form_inherit" model="ir.ui.view">
<field name="name">hr.employee.form.inherit</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='passport_id']" position="after">
<field name="passport_start_date"/>
<field name="passport_end_date"/>
<field name="passport_issued_location"/>
</xpath>
<xpath expr="//field[@name='marital']" position="after">
<field name="marriage_anniversary_date" invisible="marital != 'married'"/>
</xpath>
<xpath expr="//page[@name='personal_information']/group" position="inside">
<h5>Family Details</h5>
<field name="family_details">
<list editable="bottom">
<field name="relation_type"/>
<field name="name"/>
<field name="contact_no"/>
<field name="dob"/>
<field name="location"/>
</list>
</field>
<br/>
<br/>
</xpath>
<xpath expr="//field[@name='employee_type']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='work_email']" position="before">
<field name="employee_id"/>
<field name="emp_type"/>
</xpath>
<xpath expr="//field[@name='work_location_id']" position="after">
<field name="doj"/>
<field name="current_company_exp"/>
<field name="previous_exp"/>
<field name="total_exp"/>
</xpath>
<xpath expr="//field[@name='identification_id']" position="attributes">
<attribute name="string">AADHAR No</attribute>
</xpath>
<xpath expr="//field[@name='identification_id']" position="after">
<field name="pan_no"/>
</xpath>
<xpath expr="//header" position="inside">
<button name="open_work_location_wizard" type="object" string="Update Work Location"
class="btn-primary" groups="hr.group_hr_manager"/>
</xpath>
<xpath expr="//notebook" position="inside">
<page name="work_location_history_page" string="Work Location History" groups="hr.group_hr_manager">
<field name="work_loc_history">
<list editable="bottom">
<field name="employee_id" column_invisible="1"/>
<field name="work_location_type"
options="{'no_quick_create': True, 'no_create_edit': True, 'no_open': True}"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="note"/>
</list>
</field>
</page>
</xpath>
<xpath expr="//field[@name='private_car_plate']" position="after">
<field name="blood_group"/>
</xpath>
<xpath expr="//field[@name='private_email']" position="before">
<label for="permanent_street" string="Permanent Address"/>
<div class="o_address_format">
<field name="permanent_street" placeholder="Street..." class="o_address_street"/>
<field name="permanent_street2" placeholder="Street 2..." class="o_address_street"/>
<field name="permanent_city" placeholder="City" class="o_address_city"/>
<field name="permanent_state_id" class="o_address_state" placeholder="State"
options="{'no_open': True, 'no_quick_create': True}"
context="{'default_country_id': private_country_id}"/>
<field name="permanent_zip" placeholder="ZIP" class="o_address_zip"/>
<field name="permanent_country_id" placeholder="Country" class="o_address_country"
options="{&quot;no_open&quot;: True, &quot;no_create&quot;: True}"/>
</div>
</xpath>
<xpath expr="//page[@name='hr_settings']" position="inside">
<group>
<group string="PF Details" name="pf_details">
<field name="previous_company_pf_no"/>
<field name="previous_company_uan_no"/>
</group>
</group>
</xpath>
</field>
</record>
<record id="view_employee_public_form_inherit" model="ir.ui.view">
<field name="name">hr.employee.public.form.inherit</field>
<field name="model">hr.employee.public</field>
<field name="inherit_id" ref="hr.hr_employee_public_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='mobile_phone']" position="before">
<field name="employee_id"/>
</xpath>
<xpath expr="//field[@name='work_location_id']" position="after">
<field name="doj"/>
</xpath>
<!-- <xpath expr="//field[@name='identification_id']" position="attributes">-->
<!-- <attribute name="string">AADHAR No</attribute>-->
<!-- </xpath>-->
<!-- <xpath expr="//field[@name='identification_id']" position="after">-->
<!-- <field name="pan_no"/>-->
<!-- </xpath>-->
</field>
</record>
<record id="mail.menu_root_discuss" model="ir.ui.menu">
<field name="groups_id"
eval="[(3,ref('base.group_user')),(4, ref('hr_employee_extended.group_internal_user'))]"/>
</record>
<record id="hr.menu_hr_root" model="ir.ui.menu">
<field name="groups_id"
eval="[(3,ref('hr.group_hr_manager')),(3,ref('hr.group_hr_user')),(3,ref('base.group_user')),(3,ref('hr_employee_extended.group_external_user')),(4, ref('hr_employee_extended.group_internal_user'))]"/>
</record>
</data>
</odoo>