|
|
@ -46,7 +46,6 @@ class AttendanceSheetShift(models.Model): |
|
|
|
("working_mode", "in", ("regular", "irregular")), |
|
|
|
("state", "not in", ("unsubscribed", "resigning")), |
|
|
|
], |
|
|
|
required=True, |
|
|
|
) |
|
|
|
task_type_id = fields.Many2one( |
|
|
|
"beesdoo.shift.type", string="Task Type", default=_default_task_type_id |
|
|
@ -342,6 +341,7 @@ class AttendanceSheet(models.Model): |
|
|
|
compensation_nb = "1" |
|
|
|
else: |
|
|
|
compensation_nb = "2" |
|
|
|
if task.worker_id: |
|
|
|
new_expected_shift = expected_shift.create( |
|
|
|
{ |
|
|
|
"attendance_sheet_id": new_sheet.id, |
|
|
|