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

Module: Employees

Entity: hr.employee.departure

Compute Method: _compute_action_date

Inputs Method Outputs
for departure in self:
            if not (departure.departure_date and departure.action_date):
                continue
            if departure.action_date < departure.departure_date:
                departure.action_date = departure.departure_date + relativedelta(days=1)

Back to entity