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

Module: Recruitment

Entity: hr.applicant

Compute Method: _compute_date_closed

View 18.0 View 20.0
Inputs Method Outputs
  • stage_id
  • stage_id.hired_stage
  • date_closed
for applicant in self:
            if applicant.stage_id and applicant.stage_id.hired_stage and not applicant.date_closed:
-                 applicant.date_closed = fields.datetime.now()
+                 applicant.date_closed = fields.Datetime.now()
            if not applicant.stage_id.hired_stage:
                applicant.date_closed = False
  • date_closed

Back to entity