Merge pull request #155 from expsa/fix_api_web

fix api 001
This commit is contained in:
AbuzarExp 2024-07-11 11:30:01 +03:00 committed by GitHub
commit 5ab3a57af4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class LeaveController(http.Controller):
offset=offset, limit=limit)
count = http.request.env['hr.holidays'].search_count(
[('state', 'in', ['confirm','validate','approved']), ('employee_id', '!=', employee.id), ('type', '=', 'remove')],)
if done:
elif done:
holidays = http.request.env['hr.holidays'].search(
[('state', 'in', ['validate1','refuse','cancel']), ('employee_id', '!=', employee.id), ('type', '=', 'remove')],
offset=offset, limit=limit)