Browse Source

[FIX] b_shift : attendance sheet 'is_annotated'

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
c18a6e803f
  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") @api.depends("annotation")
def _compute_is_annotated(self): def _compute_is_annotated(self):
for rec in 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") @api.constrains("expected_shift_ids", "added_shift_ids")
def _constrain_unique_worker(self): def _constrain_unique_worker(self):

Loading…
Cancel
Save