Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Time Off

Entity: hr.leave.accrual.level

Compute Method: _compute_days_display

View 17.0
Inputs Method Outputs
  • first_day
  • second_day
  • first_month_day
  • second_month_day
  • yearly_day
- days_select = _get_selection_days(self)
- for level in self:
-             level.first_day_display = days_select[min(level.first_day - 1, 28)][0]
-             level.second_day_display = days_select[min(level.second_day - 1, 28)][0]
-             level.first_month_day_display = days_select[min(level.first_month_day - 1, 28)][0]
-             level.second_month_day_display = days_select[min(level.second_month_day - 1, 28)][0]
-             level.yearly_day_display = days_select[min(level.yearly_day - 1, 28)][0]
  • first_day_display
  • second_day_display
  • first_month_day_display
  • second_month_day_display
  • yearly_day_display

Back to entity