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.
 
 
 
 
 

81 lines
3.6 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">
<xpath expr="//field[@name='work_email']" position="after">
<field name="sex" widget="radio"/>
</xpath>
<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" widget="one2many">
<tree editable="bottom">
<field name="name"/>
<field name="shift_type"/>
<field name="start_time"/>
<field name="end_time"/>
</tree>
</field>
</page>
</xpath>
<xpath expr="//field[@name='job_title']" position="replace">
<field name="job_position" placeholder="Job Position"/>
</xpath>
<xpath expr="//field[@name='job_id']" position="replace">
<field name="specialised_in_id"/>
</xpath>
<xpath expr="//field[@name='work_email']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
<xpath expr="//field[@name='category_ids']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='parent_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='coach_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//page[@name='hr_settings']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//page[@name='public']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<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>
<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>