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
Compute Method: _compute_request_unit_half
| Inputs | Method | Outputs |
|---|---|---|
|
for holiday in self: - if (holiday.holiday_status_id and holiday.leave_type_request_unit not in ['half_day', 'hour']) or holiday.request_unit_hours: - holiday.request_unit_half = False + holiday.request_unit_half = holiday.leave_type_request_unit == 'half_day' |
|
