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

Module: Attendances

Entity: hr.attendance

Compute Method: _compute_day_of_date

View 20.0
Inputs Method Outputs
  • date
+ for record in self:
+             if record.date:
+                 record.day_of_date = str(record.date.weekday())
+             else:
+                 record.day_of_date = False
  • day_of_date

Back to entity