Browse Source

[IMP] b_shift : no exception raised when scanning a worker twice

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
bb546c9090
  1. 2
      beesdoo_shift/models/attendance_sheet.py

2
beesdoo_shift/models/attendance_sheet.py

@ -360,7 +360,7 @@ class AttendanceSheet(models.Model):
added_ids = map(lambda s: s.worker_id.id, self.added_shift_ids)
if worker.id in added_ids:
raise UserError(_("Worker is already present."))
return
self.added_shift_ids |= self.added_shift_ids.new(
{

Loading…
Cancel
Save