Browse Source

[FIX] b_shift : attendance sheet 'is_annotated'

pull/143/head
Elouan Le Bars 5 years ago
parent
commit
23a3c0c21a
  1. 4
      beesdoo_shift/models/attendance_sheet.py

4
beesdoo_shift/models/attendance_sheet.py

@ -279,7 +279,9 @@ class AttendanceSheet(models.Model):
@api.depends("annotation")
def _compute_is_annotated(self):
for rec in self:
rec.is_annotated = bool(rec.annotation.strip())
if rec.annotation:
return bool(rec.annotation.strip())
return False
@api.constrains("expected_shift_ids", "added_shift_ids")
def _constrain_unique_worker(self):

Loading…
Cancel
Save