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

Module: HR Timesheet Sheet

Entity: hr.employee

Compute Method: _compute_timesheet_sheet_count

Inputs Method Outputs
  • id
Sheet = self.env["hr_timesheet.sheet"]
for employee in self:
            employee.timesheet_sheet_count = Sheet.search_count(
                [("employee_id", "=", employee.id)]
            )

Back to entity