From 1ff335fb0220606d14437092639d85a50c999e8d Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 7 Nov 2019 13:56:17 +0100 Subject: [PATCH] [FIX] b_shift : attendance sheet replacement worker field name --- beesdoo_shift/models/attendance_sheet.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index ef65baf..36252c0 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/beesdoo_shift/models/attendance_sheet.py @@ -386,9 +386,7 @@ class AttendanceSheet(models.Model): # How can we show a message without stopping validation ? if actual_stage: actual_shift.stage_id = actual_stage - actual_shift.replacement_worker_id = ( - expected_shift.replacement_worker_id - ) + actual_shift.replaced_id = expected_shift.replacement_worker_id # Added shifts status update for added_shift in self.added_shift_ids: