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_sequence

Inputs Method Outputs
start_type_multipliers = {
            'day': 1,
            'month': 30,
            'year': 365,
        }
for level in self:
            level.sequence = level.start_count * start_type_multipliers[level.start_type]

Back to entity