Skip to content

Commit

Permalink
[MIG] hr_timesheet_sheet: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed Jan 21, 2024
1 parent baff915 commit 5020795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hr_timesheet_sheet/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{
"name": "HR Timesheet Sheet",
"version": "16.0.1.1.0",
"version": "17.0.1.0.0",
"category": "Human Resources",
"sequence": 80,
"summary": "Timesheet Sheets, Activities",
Expand Down
4 changes: 2 additions & 2 deletions hr_timesheet_sheet/models/hr_department.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class HrDepartment(models.Model):
)

def _compute_timesheet_to_approve(self):
timesheet_data = self.env["hr_timesheet.sheet"].read_group(
timesheet_data = self.env["hr_timesheet.sheet"]._read_group(
[("department_id", "in", self.ids), ("state", "=", "confirm")],
["department_id"],
["department_id"],
["__count"],
)
result = {
data["department_id"][0]: data["department_id_count"]
Expand Down

0 comments on commit 5020795

Please sign in to comment.