Merge pull request #1607 from expsa/samir-aladawi-handle-closing-app
[FIX] odex_mobile: reset last_active_time
This commit is contained in:
commit
8fb70fbaca
|
|
@ -234,6 +234,9 @@ class AttendanceController(http.Controller):
|
|||
else:
|
||||
msg = (_("Check Fail Due To Duplication"))
|
||||
data = {}
|
||||
# Reset last_active_time when the employee signed out
|
||||
if body.get('action') == 'sign_out':
|
||||
employee.last_active_time = False
|
||||
return http_helper.response(msg, data={'checks': [data]})
|
||||
except (UserError, AccessError, ValidationError, Exception, Warning) as e:
|
||||
http.request._cr.rollback()
|
||||
|
|
|
|||
Loading…
Reference in New Issue