diff --git a/models/hr_timesheet.py b/models/hr_timesheet.py index dd42a61b4fae0e88b52c9e3b6480f079e57ab3f5..86b7cd2dab9f41cf727b2daeebdff688e3906e5e 100644 --- a/models/hr_timesheet.py +++ b/models/hr_timesheet.py @@ -199,6 +199,7 @@ class ScopHrTimesheet(models.Model): ("company_id", "=", self.env.company.id), ("date_from", "<=", dt), ("date_to", ">=", dt), + ("resource_id", "=", False), ] ) if line.date.weekday() in (5, 6) or holiday: