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.
94 lines
4.1 KiB
94 lines
4.1 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<!-- Removing unwanted fields and adding new fields -->
|
|
<record id="view_employee_form" model="ir.ui.view">
|
|
<field name="name">
|
|
hr.employee.view.form.inherit.dental.clinical.management
|
|
</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
|
<field name="arch" type="xml">
|
|
<!-- Added custom fields -->
|
|
<xpath expr="//field[@name='work_email']" position="after">
|
|
<field name="sex" widget="radio"/>
|
|
<field name="specialised_in_id"/>
|
|
</xpath>
|
|
<!-- Added custom fields -->
|
|
<xpath expr="//field[@name='department_id']" position="before">
|
|
<field name="dob"/>
|
|
<field name="doctor_age"/>
|
|
</xpath>
|
|
<!-- Added new page time shift -->
|
|
<xpath expr="//page[@name='personal_information']" position="after">
|
|
<page string="Shift">
|
|
<field name="time_shift_ids">
|
|
<tree editable="bottom">
|
|
<field name="name"/>
|
|
<field name="shift_type"/>
|
|
<field name="start_time"/>
|
|
<field name="end_time"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</xpath>
|
|
<!-- Added new field by replacing the field job_title -->
|
|
<xpath expr="//field[@name='job_title']" position="replace">
|
|
<field name="job_position" placeholder="Job Position"/>
|
|
</xpath>
|
|
<!-- Replace the field job_id -->
|
|
<xpath expr="//field[@name='job_id']" position="replace">
|
|
<field name="specialised_in_id"/>
|
|
</xpath>
|
|
<!-- Replace the field work_email-->
|
|
<xpath expr="//field[@name='work_email']" position="attributes">
|
|
<attribute name="required">1</attribute>
|
|
</xpath>
|
|
<!-- Remove the field category_ids -->
|
|
<xpath expr="//field[@name='category_ids']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<!-- Remove the field parent_id -->
|
|
<xpath expr="//field[@name='parent_id']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<!-- Remove the field coach_id -->
|
|
<xpath expr="//field[@name='coach_id']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<!-- Invisible the page HR Settings -->
|
|
<xpath expr="//page[@name='hr_settings']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<!-- Invisible the page -->
|
|
<xpath expr="//page[@name='public']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<!-- Invisible the button Lunch plan -->
|
|
<xpath expr="//button[@name='%(hr.plan_wizard_action)d']"
|
|
position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[@id='o_work_employee_main']"
|
|
position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[@id='o_employee_right']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Removing unwanted fields -->
|
|
<record id="view_employee_tree" model="ir.ui.view">
|
|
<field name="name">
|
|
hr.employee.view.tree.inherit.dental.clinical.management
|
|
</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr.view_employee_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='job_id']" position="replace">
|
|
<field name="job_position"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|