Skip to content

Commit 9dcd98c

Browse files
author
Adrià Pallejà
committed
Fix compute week
1 parent 2255334 commit 9dcd98c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shift_attendance/models/attendance_sheet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ def _compute_week(self):
273273
for shift in rec.expected_shift_ids:
274274
if shift.task_id.planning_id.name:
275275
rec.week = shift.task_id.planning_id.name
276+
else:
277+
rec.week = 1
276278

277279
@api.depends("notes")
278280
def _compute_is_annotated(self):

0 commit comments

Comments
 (0)