This commit is contained in:
odex 2024-08-01 11:22:00 +03:00
parent aa83a200e4
commit 95eff02e7c
1 changed files with 3 additions and 2 deletions

View File

@ -349,8 +349,9 @@ class AttendanceController(http.Controller):
}
li.append(attendance)
return http_helper.response(message="Data Found", data={'total_months':total_months, 'attendaces': li})
return http_helper.response(message="Data Found", data={'total_months':total_months, 'attendaces': li})
else:
return http_helper.response(message="Data not Found", data={'attendaces': li})
except (UserError, AccessError, ValidationError, Exception, Warning) as e:
http.request._cr.rollback()
error = str(e)