fix api 001

This commit is contained in:
odex 2024-07-11 11:29:28 +03:00
parent a7b4176a90
commit 964b74ebdc
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)