Repository
OCA/hr · module folder · Try on Runboat
Module version
1.0.1
Category
Human Resources
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr
Last tracking update
2026-08-07 09:06:28
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Miquel Raïch, OCA-git-bot, oca-ci, Vicent-S73
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to manage employee working time with profiles by date
intervals.

The profiles are regular working time calendars, but they are treated as
master ones here, allowing you to compose complexes working times by
dates.

Under the hook, a unique working time is created for each employee with
the proper composition for not affecting the rest of the functionality
linked to this model.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
resource_calendar_form resource.calendar form Inherits resource.resource_calendar_form
view_employee_form hr.employee form Inherits hr.view_employee_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • calendar_ids One2many → hr.employee.calendar
    comodel_name='hr.employee.calendar' copy=True inverse_name='employee_id' string='Calendar planning'
Public methods (5)
  • copy(self, default=None)
  • copy_global_leaves(self)
  • create(self, vals_list)
    @api.model_create_multi
  • default_get(self, fields)
    @api.model
    Set calendar_ids default value to cover all use cases.
  • regenerate_calendar(self)

New fields (5)
  • calendar_id Many2one → resource.calendar
    check_company=True comodel_name='resource.calendar' ondelete='restrict' required=True string='Working Time'
  • company_id Many2one
    related='employee_id.company_id'
  • date_end Date
    string='End Date'
  • date_start Date
    string='Start Date'
  • employee_id Many2one → hr.employee
    comodel_name='hr.employee' ondelete='cascade' required=True string='Employee'
Public methods (3)
  • create(self, vals)
    @api.model_create_multi
  • unlink(self)
  • write(self, vals)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • active Boolean
    default=True
  • auto_generate Boolean
  • employee_calendar_ids One2many → hr.employee.calendar
    args: 'hr.employee.calendar', 'calendar_id'
Public methods (1)
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…