Merge pull request #176 from expsa/fix_api_web

fix some bug
This commit is contained in:
AbuzarExp 2024-07-11 18:26:52 +03:00 committed by GitHub
commit 204e745f20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ class LeaveController(http.Controller):
success=False)
data = None
try:
holidays = http.request.env['hr.holidays'].search([('id', '=', id)])
holidays = http.request.env['hr.holidays'].sudo().search([('id', '=', id)])
print(holidays)
if holidays:
data = self.get_return_data(holidays)