Skip to content

Commit 5d27b3d

Browse files
committed
[FIX] hr_attendance: Wrong timezone
The timezones are already managed in the JS. So on the attendance check in/out screen when a user clocked out after 8 hrs he got a message saying that he has been in for more than 12 hrs. opw:710161
1 parent 7abeace commit 5d27b3d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

addons/hr_attendance/models/hr_employee.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ def attendance_action(self, next_action):
8888
self.ensure_one()
8989
action_message = self.env.ref('hr_attendance.hr_attendance_action_greeting_message').read()[0]
9090
action_message['previous_attendance_change_date'] = self.last_attendance_id and (self.last_attendance_id.check_out or self.last_attendance_id.check_in) or False
91-
if action_message['previous_attendance_change_date']:
92-
action_message['previous_attendance_change_date'] = \
93-
fields.Datetime.to_string(fields.Datetime.context_timestamp(self, fields.Datetime.from_string(action_message['previous_attendance_change_date'])))
9491
action_message['employee_name'] = self.name
9592
action_message['next_action'] = next_action
9693

0 commit comments

Comments
 (0)