Skip to content

Commit c1601e7

Browse files
committed
[FIX] sign in and sign out were broken in rev 10019 as it doesn't provide a date to conversion of attendance time to employee timezone
lp bug: https://launchpad.net/bugs/1314589 fixed bzr revid: [email protected]
1 parent c16d0fc commit c1601e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/hr_timesheet_sheet/hr_timesheet_sheet.py

+3
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ def _get_attendance_employee_tz(self, cr, uid, employee_id, date, context=None):
407407
employee = employee_obj.browse(cr, uid, employee_id, context=context)
408408
tz = employee.user_id.partner_id.tz
409409

410+
if not date:
411+
date = time.strftime(DEFAULT_SERVER_DATETIME_FORMAT)
412+
410413
att_tz = timezone(tz or 'utc')
411414

412415
attendance_dt = datetime.strptime(date, DEFAULT_SERVER_DATETIME_FORMAT)

0 commit comments

Comments
 (0)