Merge pull request #173 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
AbuzarExp 2024-07-11 17:10:28 +03:00 committed by GitHub
commit 41c69bebad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class LeaveController(http.Controller):
my_leave = balance.mapped('holiday_status_id').ids
status = http.request.env['hr.holidays.status'].search([('id', 'in', my_leave)])
domain = [('state', '!=', 'draft')]
alternative_employees = http.request.env['hr.employee'].sudo().search_read(
alternative_employees = http.request.env['hr.employee'].search_read(
[('state', '=', 'open'), ('id', '!=', employee.id)], ['name'])
if approvel:
holidays = http.request.env['hr.holidays'].search(