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

Compute Method: _compute_birthday_public_display_string

View 19.0 View 20.0
Inputs Method Outputs
  • birthday
  • birthday_public_display
for employee in self:
            if employee.birthday and employee.birthday_public_display:
-                 employee.birthday_public_display_string = datetime.strftime(employee.birthday, "%d %B")
+                 employee.birthday_public_display_string = format_date(self.env, employee.birthday, date_format="MMMM dd")
            else:
                employee.birthday_public_display_string = "hidden"
  • birthday_public_display_string

Back to entity