HR Timesheet Holiday

hr_timesheet_holiday
REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/10.0/hr_timesheet_holiday
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT, Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT, Therp BV
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), mreficent, OCA Transbot, oca-travis, OCA-git-bot, aheficent, François Honoré
WEBSITE
WEBSITEhttps://github.com/OCA/hr-timesheet
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/hr:
    - hr_holidays_settings
odoo/odoo:
    - hr_timesheet_sheet
    - hr_timesheet
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
    - hr
    - resource
    - project
    - hr_holidays
    - calendar
    - base_action_rule
    - web_calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_analytic_account_timesheet_form account.analytic.account xpath Inherits analytic.view_account_analytic_account_form
edit_holiday_status_form1 hr.holidays.status field Inherits hr_holidays.edit_holiday_status_form
view_company_inherit_form res.company.form.inherit res.company notebook Inherits base.view_company_form
view_holiday_status_tree1 hr.holidays.status field Inherits hr_holidays.view_holiday_status_normal_tree
Models touched (5)

New fields (2)
  • holiday_status_ids One2many → hr.holidays.status
    comodel_name='hr.holidays.status' inverse_name='analytic_account_id'
  • is_leave_account Boolean
    default=False help='Check this field if this account manages leaves' args: 'Leaves'
Public methods (1)
  • project_create(self, vals)
    @api.multi

New fields (1)
  • leave_id Many2one → hr.holidays
    comodel_name='hr.holidays' string='Leave id'
Public methods (1)
  • write(self, vals)
    @api.multi

New fields (1)
  • analytic_line_ids One2many → account.analytic.line
    comodel_name='account.analytic.line' inverse_name='leave_id' string='Analytic Lines'
Public methods (3)
  • action_approve(self)
    @api.multi
    On grant of leave, add timesheet lines
  • action_refuse(self)
    @api.multi
    On refusal of leave, delete timesheet lines
  • add_timesheet_line(self, description, date, hours, account)
    @api.multi
    Add a timesheet line for this leave

New fields (2)
  • analytic_account_id Many2one → account.analytic.account
    comodel_name='account.analytic.account' related='project_id.analytic_account_id' string='Analytic Account'
  • project_id Many2one → project.project
    comodel_name='project.project' string='Project'
Public methods (0)

No public methods.

New fields (1)
  • timesheet_hours_per_day Float
    default=8.0 digits=(2, 2) string='Timesheet Hours Per Day'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/8.0/hr_timesheet_holiday
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sunflower IT, Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sunflower IT, Therp BV
COMMITTERS
COMMITTERSHolger Brunn, OCA Transbot, oca-travis, OCA-git-bot, Tom Blauwendraat
WEBSITE
WEBSITEhttp://sunflowerweb.nl
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_timesheet_sheet
    - hr_timesheet
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
    - hr
    - resource
    - hr_attendance
    - hr_timesheet_invoice
    - hr_holidays
    - calendar
    - base_action_rule
    - web_calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_analytic_account_timesheet_form account.analytic.account xpath Inherits analytic.view_account_analytic_account_form
edit_holiday_status_form1 hr.holidays.status field Inherits hr_holidays.edit_holiday_status_form
view_company_inherit_form res.company.form.inherit res.company field Inherits base.view_company_form
view_holiday_status_tree1 hr.holidays.status field Inherits hr_holidays.view_holiday_status_normal_tree
Models touched (7)

New fields (2)
  • holiday_status_ids One2many → hr.holidays.status
    args: 'hr.holidays.status', 'analytic_account_id'
  • is_leave_account Boolean
    default=False help='Check this field if this account manages leaves' args: 'Leaves'
Public methods (0)

No public methods.

New fields (1)
  • _timesheet_ids One2many → hr.analytic.timesheet
    args: 'hr.analytic.timesheet', 'line_id'
Public methods (0)

No public methods.

New fields (1)
  • leave_id Many2one → hr.holidays
    ondelete='restrict' args: 'hr.holidays', 'Leave id'
Public methods (1)
  • unlink(self)
    @api.multi

New fields (1)
  • timesheet_ids One2many → hr.analytic.timesheet
    args: 'hr.analytic.timesheet', 'leave_id', 'Timesheet entries'
Public methods (3)
  • add_timesheet_line(self, description, date, hours, account_id, user_id)
    @api.multi
    Add a timesheet line for this leave
  • holidays_refuse(self)
    @api.multi
    On refusal of leave, delete timesheet lines
  • holidays_validate(self)
    @api.multi
    On grant of leave, add timesheet lines

New fields (1)
  • analytic_account_id Many2one → account.analytic.account
    args: 'account.analytic.account', 'Analytic Account'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    @api.multi

New fields (1)
  • timesheet_hours_per_day Float
    default=8.0 digits=(2, 2) args: 'Timesheet Hours Per Day'
Public methods (0)

No public methods.