Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 10 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.19 MB
Module directory on disk
Code analysis 1 migration note 5 models 2 views 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
hr_attendance_employee_calendar_planning

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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 5

New fields (1)
  • calendar_ids One2many → hr.employee.calendar
    comodel_name='hr.employee.calendar' copy=True groups='hr.group_hr_user' 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
Public methods (3)
  • create(self, vals)
    @api.model_create_multi
  • unlink(self)
  • write(self, vals)

New fields (3)
  • is_flexible Boolean
    compute_sudo=True search='_search_is_flexible' store=False
  • is_fully_flexible Boolean
    compute='_compute_is_fully_flexible'
  • stored_is_flexible Boolean
    compute='_compute_stored_is_flexible' groups='hr.group_hr_user' store=True
Public methods (0)

No public methods.

New fields (12)
  • active Boolean
    default=True
  • auto_generate Boolean
  • employee_calendar_ids One2many → hr.employee.calendar
    args: 'hr.employee.calendar', 'calendar_id'
  • employee_ids One2many → hr.employee
    args: 'hr.employee', 'resource_calendar_id'
  • flexible_hours Boolean
    search='_search_flexible_hours' store=False
  • full_time_required_hours Float
    search='_search_full_time_required_hours' store=False
  • hours_per_day Float
    search='_search_hours_per_day' store=False
  • hours_per_week Float
    search='_search_hours_per_week' store=False
  • stored_flexible_hours Boolean
    compute='_compute_stored_flexible_hours' help="When enabled, it will allow employees to work flexibly, without relying on the company's working schedule (working hours)." store=True
  • stored_full_time_required_hours Float
    compute='_compute_stored_full_time_required_hours' help='Number of hours to work on the company schedule to be considered as fulltime.' store=True
  • stored_hours_per_day Float
    compute='_compute_stored_hours_per_day' digits=(2, 2) help='Average hours per day a resource is supposed to work with this calendar.' readonly=False store=True
  • stored_hours_per_week Float
    compute='_compute_stored_hours_per_week' readonly=False store=True
Public methods (2)
  • create(self, vals)
    @api.model_create_multi
  • write(self, vals)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…