Browse Source

[REF] b_shift : code cleaning

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

2
beesdoo_shift/models/attendance_sheet.py

@ -502,7 +502,7 @@ class AttendanceSheet(models.Model):
start_time_dt = fields.Datetime.from_string(self.start_time)
if self.state == "validated":
raise UserError("The sheet has already been validated.")
raise UserError(_("The sheet has already been validated."))
if start_time_dt > datetime.now():
raise UserError(
_("You must wait for the shifts to begin to validate sheet.")

Loading…
Cancel
Save