Merge pull request #298 from expsa/abuzar_fix_odexss

fix bug
This commit is contained in:
AbuzarExp 2024-07-20 15:17:18 +03:00 committed by GitHub
commit 278440bfef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class LeaveController(http.Controller):
li = []
if balance:
for s in balance:
value = {'id': s.id, 'name': s.name or "", 'total': s.leave_balance,
value = {'id': s.id, 'name': s.holiday_status_id.name or "", 'total': s.leave_balance,
'remain': s.remaining_leaves, 'taken': s.leaves_taken, }
li.append(value)
leaves = []