From 647998d8faab2d78bbe36faf77498c734d7cd25e Mon Sep 17 00:00:00 2001 From: odex Date: Thu, 11 Jul 2024 17:08:01 +0300 Subject: [PATCH] fix some bug --- odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py index 7f8ea320c..1a9a93e07 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/leave.py @@ -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(