odoo18/addons_extensions/hr_employee_extended/views/hr_employee.xml

64 lines
3.2 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<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='work_email']" position="before">
<field name="employee_id"/>
</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>
</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>
</data>
</odoo>