Browse Source

[FIX] b_shift : attendance sheet _compute_is_annotated

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
0707f8f271
  1. 3
      beesdoo_shift/models/attendance_sheet.py

3
beesdoo_shift/models/attendance_sheet.py

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

Loading…
Cancel
Save