Hr Holidays

Hr Leave View Form Manager Approve

Report Note Group

ID: mint_system.hr_holidays.hr_leave_view_form_manager_approve.report_note_group

<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_form_manager_approve" priority="50">

  <xpath expr="//div[@groups='hr_holidays.group_hr_holidays_manager']" position="replace">
    <div groups="hr_holidays.group_hr_holidays_responsible">
      <separator string="Manager's Comment"/>
      <field name="report_note" placeholder="e.g. Report to the next month..."/>
    </div>
  </xpath>

</data>

Source: snippets/hr_holidays.hr_leave_view_form_manager_approve.report_note_group.xmlopen in new window

Hr Leave View Timeline

View

ID: mint_system.hr_holidays.hr_leave_view_timeline.view

<?xml version='1.0' encoding='UTF-8' ?>
<odoo>

  <record id="hr_holidays.hr_leave_view_timeline.view" model="ir.ui.view">
    <field name="name">mint_system.hr_holidays.hr_leave_view_timeline.view</field>
    <field name="model">hr.leave</field>
    <field name="type">timeline</field>
    <field name="arch" type="xml">
      <timeline date_start="date_from" date_stop="date_to" default_group_by="employee_id" event_open_popup="true" />
    </field>
  </record>

</odoo>

Source: snippets/hr_holidays.hr_leave_view_timeline.view.xmlopen in new window

Hr Leave View Tree

Add Synced Field

ID: mint_system.hr_holidays.hr_leave_view_tree.add_synced_field

<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_tree" priority="50">

  <xpath expr="//field[@name='state']" position="after">
    <field name="x_synced" widget="toggle_button"/>
  </xpath>

</data>

Source: snippets/hr_holidays.hr_leave_view_tree.add_synced_field.xmlopen in new window

Remove Payslip

ID: mint_system.hr_holidays.hr_leave_view_tree.remove_payslip

<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_tree" priority="50">

  <xpath expr="//field[@name='payslip_status']" position="replace">
  </xpath>

</data>

Source: snippets/hr_holidays.hr_leave_view_tree.remove_payslip.xmlopen in new window

Show Days

ID: mint_system.hr_holidays.hr_leave_view_tree.show_days

<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_tree" priority="50">

  <field name="duration_display" position="before">
    <field name="number_of_days" sum="Number of Days" optional="hide" />
  </field>

</data>

Source: snippets/hr_holidays.hr_leave_view_tree.show_days.xmlopen in new window