fix bug
This commit is contained in:
parent
0f4c47c417
commit
aa83a200e4
|
|
@ -349,9 +349,8 @@ class AttendanceController(http.Controller):
|
|||
}
|
||||
li.append(attendance)
|
||||
|
||||
return http_helper.response(message="Data Found", data={'total_months':total_months, 'attendaces': li})
|
||||
else:
|
||||
return http_helper.response(code=400,message="Data not Found ", success=False)
|
||||
return http_helper.response(message="Data Found", data={'total_months':total_months, 'attendaces': li})
|
||||
|
||||
except (UserError, AccessError, ValidationError, Exception, Warning) as e:
|
||||
http.request._cr.rollback()
|
||||
error = str(e)
|
||||
|
|
|
|||
Loading…
Reference in New Issue