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

View 20.0
Inputs Method Outputs
  • departure_date
  • action_date
+ 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)
  • action_date

Back to entity