Skip to content

Commit d53827f

Browse files
author
Adrià Pallejà
committed
Fix compute week
1 parent 8cb1d29 commit d53827f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

shift_attendance/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Elouan Le Bars, Coop IT Easy SC, Odoo Community Association (OCA)",
1010
"website": "https://github.com/beescoop/Obeesdoo",
1111
"category": "Cooperative management",
12-
"version": "16.0.1.0.2",
12+
"version": "16.0.1.0.3",
1313
"depends": [
1414
"eater",
1515
"member_card",

shift_attendance/models/attendance_sheet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ 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 = "Default week"
276+
277+
if not rec.week:
278+
rec.week = "Default week"
278279

279280
@api.depends("notes")
280281
def _compute_is_annotated(self):

0 commit comments

Comments
 (0)