Skip to content
Snippets Groups Projects
Commit 1df6d636 authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[cgscop #179] check sur ressource sans company_id ou avec company_id = user.company_id

parent 79136f97
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,8 @@ class ScopHrTimesheet(models.Model):
for line in self:
dt = datetime.combine(line.date, time(12, 00))
holiday = self.env['resource.calendar.leaves'].search([
'|',
('company_id', '=', False),
('company_id', '=', self.env.user.company_id.id),
('date_from', '<=', dt),
('date_to', '>=', dt),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment