India - Time Off

l10n_in_hr_holidays
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/19.0/l10n_in_hr_holidays
VERSION
VERSION 1.0
CATEGORY
CATEGORYHuman Resources/Time Off
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOdoo S.A.
MAINTAINERS
MAINTAINERSOdoo S.A.
COMMITTERS
COMMITTERSOdoo Translation Bot, Yannick Tivisse, Julien Castiaux, Gorash, Yash Vaishnav, Dylan Kiss (dyki), rmun-odoo, rame-odoo, ahta, pish-odoo, bona-odoo, Dhwani Patel, dhka-odoo, saurabh, tshe-odoo, dhbr-odoo, Amr Yasser (amry)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 01:51:45
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web
    - digest
    - mail
    - bus
    - web_tour
    - html_editor
    - portal
    - http_routing
    - auth_signup
    - resource
    - phone_validation
    - resource_mail
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
The Indian Time Off module provides additional features to the application. With it, you'll be able to define Sandwich Leaves on your time off type, including weekends or holidays in the duration of the employee leave's request.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
hr_leave_type_view_form_inherit hr.leave.type.form.inherit hr.leave.type xpath Inherits hr_holidays.edit_holiday_status_form
hr_leave_view_form_inherit hr.leave.view.form.inherit hr.leave xpath Inherits hr_holidays.hr_leave_view_form
l10n_in_hr_leave_optional_holiday_view_list l10n.in.hr.leave.optional.holiday list New
l10n_in_hr_leave_optional_holiday_view_search l10n.in.hr.leave.optional.holiday search New
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • get_special_days_data(self, date_start, date_end)
    @api.model

New fields (1)
  • l10n_in_contains_sandwich_leaves Boolean
Public methods (2)
  • action_approve(self, check_state=True)
  • action_refuse(self)

New fields (2)
  • l10n_in_is_limited_to_optional_days Boolean
    help='Enable this option to restrict Flexi Leave to specific days, ensuring that only days marked as\n Optional Holidays can be selected. This helps validate that employees can only choose days from the designated\n Optional Holiday list for their Flexi Leave.'
  • l10n_in_is_sandwich_leave Boolean
    help='If a leave is covering holidays, the holiday period will be included in the requested time.\n The time took in addition will have the same treatment (allocation, pay, reports) as the initial request.\n Holidays includes public holidays, national days, paid holidays and week-ends.'
Public methods (0)

No public methods.

New fields (3)
  • company_id Many2one → res.company
    default=<expr> required=True args: 'res.company'
  • date Date
    required=True
  • name Char
    required=True
Public methods (1)
  • default_get(self, field_list=None)
    @api.model
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/18.0/l10n_in_hr_holidays
VERSION
VERSION 1.0
CATEGORY
CATEGORYHuman Resources/Time Off
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Yannick Tivisse, Yash Vaishnav, Dylan Kiss (dyki), rmun-odoo, rame-odoo, pish-odoo, bona-odoo, Dhwani Patel, tshe-odoo, dhbr-odoo
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 01:25:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_holidays
    - hr
    - base_setup
    - base
    - web
    - digest
    - mail
    - bus
    - web_tour
    - html_editor
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - phone_validation
    - resource_mail
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
hr_leave_type_view_form_inherit hr.leave.type.form.inherit hr.leave.type field Inherits hr_holidays.edit_holiday_status_form
hr_leave_view_form_inherit hr.leave.view.form.inherit hr.leave xpath Inherits hr_holidays.hr_leave_view_form
Models touched (2)

New fields (1)
  • l10n_in_contains_sandwich_leaves Boolean
Public methods (3)
  • action_approve(self, check_state=True)
  • action_refuse(self)
  • action_reset_confirm(self)

New fields (1)
  • l10n_in_is_sandwich_leave Boolean
    help='If a leave is covering holidays, the holiday period will be included in the requested time.\n The time took in addition will have the same treatment (allocation, pay, reports) as the initial request.\n Holidays includes public holidays, national days, paid holidays and week-ends.'
Public methods (0)

No public methods.