Odoo BuildOdoo Build
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
  • Snippets

    • Account
    • Account Accountant
    • Account Asset
    • Account Batch Payment
    • Account Budget
    • Account Financial Report
    • Account Followup
    • Account Journal Items Report
    • Account Sale Timesheet Report
    • Agreement
    • Agreement Legal
    • Auth Api Key
    • Base
    • Base Install Request
    • Base Location
    • Business Requirement
    • Calendar
    • Certificate Planer
    • Contract
    • Crm
    • Crm Iap Lead Enrich
    • Delivery
    • Digest
    • Fleet
    • Forestry Timesheet
    • Gio Payroll Custom
    • Helpdesk
    • Hr
    • Hr Attendance
    • Hr Attendance Kanban
    • Hr Contract
    • Hr Expense
    • Hr Holidays
      • Hr Leave Allocation View Form
        • Show Hours And Days Display
        • Show Parent Id
      • Hr Leave View Form
        • Show Holiday Allocation
        • Show Number Of Hours Always
      • Hr Leave View Form Manager Approve
        • Add Meeting Id
        • Report Note Group
      • Hr Leave View Timeline
        • View
      • Hr Leave View Tree
        • Remove Payslip
        • Show Days
        • X Synced
      • View Holiday Pivot
        • X Number Of Hours
      • View Hr Holidays Filter
        • Disable My Team
    • Hr Holidays Delegations
    • Hr Payroll
    • Hr Recruitment
    • Hr Timesheet
    • Industry Fsm
    • Industry Fsm Sale
    • Ir Model
    • Ir Ui View
    • L10n Ch
    • L10n Ch Qr Isr Invoice Import
    • L10n Din5008
    • Mail
    • Mail Activity Board
    • Maintenance
    • Maintenance Plan
    • Mrp
    • Mrp Account
    • Mrp Workorder
    • Payment
    • Portal
    • Printnode Base
    • Product
    • Project
    • Project Enterprise
    • Purchase
    • Purchase Requisition
    • Purchase Requisition Send
    • Res Groups
    • Sale
    • Sale Blanket Order
    • Sale Management
    • Sale Margin
    • Sale Order Contact Person
    • Sale Order Line Date
    • Sale Order Picking Note
    • Sale Partner Incoterm
    • Sale Product Set
    • Sale Subscription
    • Stock
    • Stock Account
    • Stock Delivery Note
    • Survey
    • Timesheet Grid
    • Web
    • Website
    • Website Discount Voucher
    • Website Sale

Hr Holidays

Hr Leave Allocation View Form

Show Hours And Days Display

ID: mint_system.hr_holidays.hr_leave_allocation_view_form.show_hours_and_days_display

<data inherit_id="hr_holidays.hr_leave_allocation_view_form" priority="50">
    <field name="number_of_days_display" position="attributes">
        <attribute name="attrs">{'readonly': ['|', '|', ('type_request_unit', '=', 'hour'), ('state', 'not in', ('draft', 'confirm')), ('allocation_type', '=', 'accrual')]}</attribute>
    </field>
    <field name="number_of_hours_display" position="before">
        <span> / </span>
    </field>
    <field name="number_of_hours_display" position="attributes">
        <attribute name="attrs">{'readonly': ['|', '|', ('type_request_unit', '!=', 'hour'), ('state', 'not in', ('draft', 'confirm')), ('allocation_type', '=', 'accrual')]}</attribute>
    </field>
</data>

Source: snippets/hr_holidays.hr_leave_allocation_view_form.show_hours_and_days_display.xml

Show Parent Id

ID: mint_system.hr_holidays.hr_leave_allocation_view_form.show_parent_id

<data inherit_id="hr_holidays.hr_leave_allocation_view_form" priority="50">
    <field name="allocation_type" position="after">
        <field name="parent_id"/>
    </field>
</data>

Source: snippets/hr_holidays.hr_leave_allocation_view_form.show_parent_id.xml

Hr Leave View Form

Show Holiday Allocation

ID: mint_system.hr_holidays.hr_leave_view_form.show_holiday_allocation

<data inherit_id="hr_holidays.hr_leave_view_form" priority="50">
    <label for="request_date_from" position="before">
        <field name="x_requires_allocation" invisible="1"/>
        <field name="holiday_allocation_id" domain="[('employee_id', 'in', employee_ids), ('holiday_status_id', '=', holiday_status_id), ('date_from', '&lt;=', request_date_from)]" required="1" attrs="{'invisible': ['|', ('x_requires_allocation', '=', 'no'), ('request_date_from', '=', False)], 'readonly': [('state', 'not in', ('draft', 'confirm'))] }" options="{'no_create': True, 'no_open': True}"/>
    </label>
</data>

Source: snippets/hr_holidays.hr_leave_view_form.show_holiday_allocation.xml

Show Number Of Hours Always

ID: mint_system.hr_holidays.hr_leave_view_form.show_number_of_hours_always

<data inherit_id="hr_holidays.hr_leave_view_form" priority="50">
    <xpath expr="//field[@name='number_of_hours_text']/.." position="attributes">
        <attribute name="attrs">{}</attribute>
    </xpath>
</data>

Source: snippets/hr_holidays.hr_leave_view_form.show_number_of_hours_always.xml

Hr Leave View Form Manager Approve

Add Meeting Id

ID: mint_system.hr_holidays.hr_leave_view_form_manager_approve.add_meeting_id

<data inherit_id="hr_holidays.hr_leave_view_form_manager_approve" priority="50">
    <field name="employee_id" position="after">
        <field name="meeting_id"/>
    </field>
</data>

Source: snippets/hr_holidays.hr_leave_view_form_manager_approve.add_meeting_id.xml

Report Note Group

ID: mint_system.hr_holidays.hr_leave_view_form_manager_approve.report_note_group

<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.xml

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.xml

Hr Leave View Tree

Remove Payslip

ID: mint_system.hr_holidays.hr_leave_view_tree.remove_payslip

<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.xml

Show Days

ID: mint_system.hr_holidays.hr_leave_view_tree.show_days

<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.xml

X Synced

ID: mint_system.hr_holidays.hr_leave_view_tree.x_synced

<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" groups="hr.group_hr_user"/>
    </xpath>
</data>

Source: snippets/hr_holidays.hr_leave_view_tree.x_synced.xml

View Holiday Pivot

X Number Of Hours

ID: mint_system.hr_holidays.view_holiday_pivot.x_number_of_hours

<data inherit_id="hr_holidays.view_holiday_pivot" priority="50">
    <field name="number_of_days" position="after">
        <field name="x_number_of_hours" type="measure"/>
    </field>
</data>

Source: snippets/hr_holidays.view_holiday_pivot.x_number_of_hours.xml

View Hr Holidays Filter

Disable My Team

ID: mint_system.hr_holidays.view_hr_holidays_filter.disable_my_team

<data inherit_id="hr_holidays.view_hr_holidays_filter" priority="50">
    <xpath expr="//filter[@name='my_team']" position="replace">
        <filter string="My Team" name="my_team" domain="[]" help="Filter has been modified to not filter"/>
    </xpath>
</data>

Source: snippets/hr_holidays.view_hr_holidays_filter.disable_my_team.xml

Edit this page
Last Updated:
Contributors: Kurt Gisler
Prev
Hr Expense
Next
Hr Holidays Delegations